summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_unsupported.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-13 09:34:33 -0800
committerGitHub <noreply@github.com>2019-01-13 09:34:33 -0800
commit140ae25c4d0c7ba89a0bb7ae16f81f90d20be535 (patch)
treea5e30854d0669694556fdde8de43e00d30176d9c /pkg/rootless/rootless_unsupported.go
parent9ada9722ecba373b317e1ab3e9adf716fc777d8d (diff)
parent43c6da22b976b6050f86dca50564a4c2b08caee0 (diff)
downloadpodman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.tar.gz
podman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.tar.bz2
podman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.zip
Merge pull request #2141 from baude/remotetag
Add darwin support for remote-client
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r--pkg/rootless/rootless_unsupported.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go
index d72402c9f..1823c023e 100644
--- a/pkg/rootless/rootless_unsupported.go
+++ b/pkg/rootless/rootless_unsupported.go
@@ -14,7 +14,7 @@ func IsRootless() bool {
// BecomeRootInUserNS is a stub function that always returns false and an
// error on unsupported OS's
func BecomeRootInUserNS() (bool, int, error) {
- return false, -1, errors.New("this function is not supported on this os")
+ return false, -1, errors.New("this function is not supported on this os1")
}
// GetRootlessUID returns the UID of the user in the parent userNS
@@ -34,11 +34,18 @@ func SkipStorageSetup() bool {
// 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")
+ return false, -1, errors.New("this function is not supported on this os2")
}
// JoinNSPath re-exec podman in a new userNS and join the owner user namespace of the
// specified path.
func JoinNSPath(path string) (bool, int, error) {
- return false, -1, errors.New("this function is not supported on this os")
+ return false, -1, errors.New("this function is not supported on this os3")
+}
+
+// JoinDirectUserAndMountNS 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.
+func JoinDirectUserAndMountNS(pid uint) (bool, int, error) {
+ return false, -1, errors.New("this function is not supported on this os4")
}