feat(server): activate projected authentication safely
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//go:build linux
|
||||
|
||||
package authconfig
|
||||
|
||||
import "os"
|
||||
|
||||
var authProjectionEffectiveUID = os.Geteuid
|
||||
|
||||
func requireProjectedAuthMutationPrivilege() error {
|
||||
if authProjectionEffectiveUID() != 0 {
|
||||
return errCommandRefused
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user