summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_unsupported.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-08-29 10:01:45 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-29 16:25:20 +0000
commit1789242933ddbc3e4a29662f5218b5b94ee30863 (patch)
treecf9a0b2106f66446bef638fb1fc7860fd27c2972 /pkg/rootless/rootless_unsupported.go
parenteb5fdebc84e59f8645218f8fdfd6e6a8136cfa43 (diff)
downloadpodman-1789242933ddbc3e4a29662f5218b5b94ee30863.tar.gz
podman-1789242933ddbc3e4a29662f5218b5b94ee30863.tar.bz2
podman-1789242933ddbc3e4a29662f5218b5b94ee30863.zip
rootless: add new function to join existing namespace
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1371 Approved by: rhatdan
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r--pkg/rootless/rootless_unsupported.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go
index 93b04adfd..e0adb3453 100644
--- a/pkg/rootless/rootless_unsupported.go
+++ b/pkg/rootless/rootless_unsupported.go
@@ -33,6 +33,12 @@ func SkipStorageSetup() bool {
return false
}
+// JoinNS re-exec podman in a new userNS and join the user namespace of the specified
+// PID.
+func JoinNS(pid uint) (bool, int, error) {
+ return false, -1, errors.New("this function is not supported on this os")
+}
+
// GetUserNSForPid returns an open FD for the first direct child user namespace that created the process
func GetUserNSForPid(pid uint) (*os.File, error) {
return nil, errors.New("this function is not supported on this os")