From 47d7713643ba3c01a3993de0abb2ff36241399ce Mon Sep 17 00:00:00 2001 From: Tamer Tas Date: Wed, 29 Jul 2015 07:41:53 +0300 Subject: [PATCH] Implement root privilege checks --- flamingo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flamingo.go b/flamingo.go index ae9ef24..dd5531c 100644 --- a/flamingo.go +++ b/flamingo.go @@ -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 {