aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-04-15 12:57:17 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-04-15 12:57:19 +0200
commitffd89994216741e452637f4aa797e616716f80cd (patch)
treef3c875ed034e75415d4e4b32d955254b7671e313 /cmd/podman
parentd10f68ac95e13535f90d9b643ac2d7530178c21d (diff)
downloadpodman-ffd89994216741e452637f4aa797e616716f80cd.tar.gz
podman-ffd89994216741e452637f4aa797e616716f80cd.tar.bz2
podman-ffd89994216741e452637f4aa797e616716f80cd.zip
rootless, mount: not create namespace
we need to check if we are able to mount the container as part of the mount command itself. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/main_local.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/main_local.go b/cmd/podman/main_local.go
index e008a4617..2915659f1 100644
--- a/cmd/podman/main_local.go
+++ b/cmd/podman/main_local.go
@@ -103,7 +103,7 @@ func profileOff(cmd *cobra.Command) error {
}
func setupRootless(cmd *cobra.Command, args []string) error {
- if os.Geteuid() == 0 || cmd == _searchCommand || cmd == _versionCommand || strings.HasPrefix(cmd.Use, "help") {
+ if os.Geteuid() == 0 || cmd == _searchCommand || cmd == _versionCommand || cmd == _mountCommand || strings.HasPrefix(cmd.Use, "help") {
return nil
}
podmanCmd := cliconfig.PodmanCommand{