diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-04-15 12:57:17 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-04-15 12:57:19 +0200 |
commit | ffd89994216741e452637f4aa797e616716f80cd (patch) | |
tree | f3c875ed034e75415d4e4b32d955254b7671e313 /cmd/podman | |
parent | d10f68ac95e13535f90d9b643ac2d7530178c21d (diff) | |
download | podman-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.go | 2 |
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{ |