Skip to content

Commit

Permalink
Implement root privilege checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrts committed Jul 30, 2015
1 parent 62eaa50 commit 47d7713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flamingo.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func FinalizeContextualization() error {
return nil
}

func HasRootPrivileges() bool {
func HasRootPrivileges() (bool, error) {
// TODO(tmrts): Move privilege check to sys.nss package
ent, err := sys.Execute("getent", "gshadow", "root")
if err != nil {
Expand Down

0 comments on commit 47d7713

Please sign in to comment.