Skip to content

Commit 47d7713

Browse files
committed
Implement root privilege checks
1 parent 62eaa50 commit 47d7713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flamingo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func FinalizeContextualization() error {
3434
return nil
3535
}
3636

37-
func HasRootPrivileges() bool {
37+
func HasRootPrivileges() (bool, error) {
3838
// TODO(tmrts): Move privilege check to sys.nss package
3939
ent, err := sys.Execute("getent", "gshadow", "root")
4040
if err != nil {

0 commit comments

Comments
 (0)