summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_unsupported.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-05-23 22:28:38 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-05-23 22:41:48 +0200
commit6df320c3910da5600a611f8aed783a499430a75c (patch)
treea82cece5a3ae0f1e9298991f68d247af030497b9 /pkg/rootless/rootless_unsupported.go
parent1dbb27365ac017a344f52e2cef3e4836b264cd4e (diff)
downloadpodman-6df320c3910da5600a611f8aed783a499430a75c.tar.gz
podman-6df320c3910da5600a611f8aed783a499430a75c.tar.bz2
podman-6df320c3910da5600a611f8aed783a499430a75c.zip
rootless: store also the original GID in the host
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r--pkg/rootless/rootless_unsupported.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go
index 42f8f3aec..221baff97 100644
--- a/pkg/rootless/rootless_unsupported.go
+++ b/pkg/rootless/rootless_unsupported.go
@@ -24,6 +24,11 @@ func GetRootlessUID() int {
return -1
}
+// GetRootlessGID returns the GID of the user in the parent userNS
+func GetRootlessGID() int {
+ return -1
+}
+
// JoinUserAndMountNS re-exec podman in a new userNS and join the user and mount
// namespace of the specified PID without looking up its parent. Useful to join directly
// the conmon process. It is a convenience function for JoinUserAndMountNSWithOpts