From 921f1c977c4e0704f61e3a7c092d3a4317ab278c Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Mon, 9 Oct 2017 19:12:49 -0700 Subject: Fixes --- util/util.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'util/util.go') diff --git a/util/util.go b/util/util.go index 3de4a1a..9f62b45 100644 --- a/util/util.go +++ b/util/util.go @@ -27,7 +27,6 @@ import ( "bufio" "math" "os" - "os/user" "strconv" "unsafe" ) @@ -117,13 +116,3 @@ func AtoiOrPanic(input string) int { } return i } - -// EffectiveUser returns the user entry corresponding to the effective user. -func EffectiveUser() (*user.User, error) { - return user.LookupId(strconv.Itoa(os.Geteuid())) -} - -// IsUserRoot checks if the effective user is root. -func IsUserRoot() bool { - return os.Geteuid() == 0 -} -- cgit v1.3