forked from Plemya-x/ALR
wip
This commit is contained in:
@ -70,15 +70,7 @@ func DropCapsToAlrUser() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
newUid := syscall.Getuid()
|
||||
if newUid != uid {
|
||||
return errors.New("new uid don't matches requested")
|
||||
}
|
||||
newGid := syscall.Getgid()
|
||||
if newGid != gid {
|
||||
return errors.New("new gid don't matches requested")
|
||||
}
|
||||
return nil
|
||||
return EnuseIsAlrUser()
|
||||
}
|
||||
|
||||
func ExitIfCantDropCapsToAlrUser() cli.ExitCoder {
|
||||
|
Reference in New Issue
Block a user