diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-10-09 19:12:49 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-10-19 02:22:24 -0700 |
| commit | 921f1c977c4e0704f61e3a7c092d3a4317ab278c (patch) | |
| tree | a3a2d3f089a19710b7ed0886ee8ba0ffb2bc4294 /util/util.go | |
| parent | b96f72d63641c8dcfe5e142ecd5d6c9f9a7d5778 (diff) | |
Fixes
Diffstat (limited to 'util/util.go')
| -rw-r--r-- | util/util.go | 11 |
1 files changed, 0 insertions, 11 deletions
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 -} |