mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
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>
This commit is contained in:
@ -103,7 +103,7 @@ func profileOff(cmd *cobra.Command) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setupRootless(cmd *cobra.Command, args []string) 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
|
return nil
|
||||||
}
|
}
|
||||||
podmanCmd := cliconfig.PodmanCommand{
|
podmanCmd := cliconfig.PodmanCommand{
|
||||||
|
Reference in New Issue
Block a user