aboutsummaryrefslogtreecommitdiff
path: root/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/util.go')
-rw-r--r--util/util.go11
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
-}