diff options
Diffstat (limited to 'go/try-launching.go')
-rw-r--r-- | go/try-launching.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/try-launching.go b/go/try-launching.go index 9f20e6b..b09b254 100644 --- a/go/try-launching.go +++ b/go/try-launching.go @@ -20,6 +20,8 @@ func tryLaunching() { } root := cwd[:strings.LastIndex(cwd, "/")] + hasSysAdmin, _ := cap.GetBound(cap.SYS_ADMIN) + vs := []struct { args []string fail bool @@ -38,7 +40,7 @@ func tryLaunching() { uid: 123, gid: 456, groups: []int{1, 2, 3}, - fail: syscall.Getuid() != 0, + fail: syscall.Getuid() != 0 || !hasSysAdmin, }, { args: []string{"/ok"}, |