webhook/droppriv_nope.go
2023-01-09 22:02:57 +08:00

13 lines
217 B
Go

//go:build linux || windows
// +build linux windows
package main
import (
"errors"
"runtime"
)
func dropPrivileges(uid, gid int) error {
return errors.New("setuid and setgid not supported on " + runtime.GOOS)
}