webhook/internal/platform/droppriv_nope.go
2023-01-09 23:14:52 +08:00

13 lines
221 B
Go

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