summaryrefslogtreecommitdiff
path: root/internal/user/name.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-10-21 21:28:49 +0300
committerPaul Buetow <pbuetow@mimecast.com>2021-10-21 21:28:49 +0300
commitf4207a55f71bfbcfdc532d5cdd3befaa3474a157 (patch)
treeea5e4a2d2a67035f645bdee496ae55a52034178a /internal/user/name.go
parentd80d6070557e3a800e3a54967af9eced518f116b (diff)
parent739205206d63bf42f4e843b39d04d4c8cd8207c3 (diff)
merge develop
Diffstat (limited to 'internal/user/name.go')
-rw-r--r--internal/user/name.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/user/name.go b/internal/user/name.go
index 28ab0a4..cd11907 100644
--- a/internal/user/name.go
+++ b/internal/user/name.go
@@ -10,11 +10,9 @@ func NoRootCheck() {
if err != nil {
panic(err)
}
-
if user.Uid == "0" {
panic("Not allowed to run as UID 0")
}
-
if user.Gid == "0" {
panic("Not allowed to run as GID 0")
}
@@ -26,6 +24,5 @@ func Name() string {
if err != nil {
panic(err)
}
-
return user.Username
}