aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-14 20:44:37 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-15 10:39:23 +0100
commite6a4bac09e5ffff47a6a28ac09179a60526bbf0b (patch)
treefb27cf14e8483dddfcfd0dd859eb6e27f47596db
parent592a2fd544d550a310c7fec2357bad3a00326486 (diff)
downloadpodman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.tar.gz
podman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.tar.bz2
podman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.zip
rootless: use Geteuid instead of Getuid
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index b2677f7d9..baceebee3 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -72,7 +72,7 @@ func GetRootlessUID() int {
u, _ := strconv.Atoi(uidEnv)
return u
}
- return os.Getuid()
+ return os.Geteuid()
}
func tryMappingTool(tool string, pid int, hostID int, mappings []idtools.IDMap) error {