From 153503e3916accf3da27c4893a37ea94731ac2c7 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 24 May 2019 09:41:06 +0200 Subject: rootless: make JoinUserAndMountNS private as it is used only by the rootless package now. Signed-off-by: Giuseppe Scrivano --- pkg/rootless/rootless_unsupported.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pkg/rootless/rootless_unsupported.go') diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go index 06781e6ce..c063adee5 100644 --- a/pkg/rootless/rootless_unsupported.go +++ b/pkg/rootless/rootless_unsupported.go @@ -29,14 +29,6 @@ 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 -// with a default configuration. -func JoinUserAndMountNS(pid uint, pausePid string) (bool, int, error) { - return false, -1, errors.New("this function is not supported on this os") -} - // TryJoinFromFilePaths attempts to join the namespaces of the pid files in paths. // This is useful when there are already running containers and we // don't have a pause process yet. We can use the paths to the conmon -- cgit v1.2.3-54-g00ecf