diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-14 20:44:37 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-15 10:39:23 +0100 |
commit | e6a4bac09e5ffff47a6a28ac09179a60526bbf0b (patch) | |
tree | fb27cf14e8483dddfcfd0dd859eb6e27f47596db /pkg | |
parent | 592a2fd544d550a310c7fec2357bad3a00326486 (diff) | |
download | podman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.tar.gz podman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.tar.bz2 podman-e6a4bac09e5ffff47a6a28ac09179a60526bbf0b.zip |
rootless: use Geteuid instead of Getuid
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/rootless/rootless_linux.go | 2 |
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 { |