mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
podman machine: do not join userns
The go logic already prevents podman from joining the userns for machine commands but the c shortcut code did not. [NO TESTS NEEDED] Fixes #11731 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -212,6 +212,7 @@ can_use_shortcut ()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcmp (argv[argc], "mount") == 0
|
if (strcmp (argv[argc], "mount") == 0
|
||||||
|
|| strcmp (argv[argc], "machine") == 0
|
||||||
|| strcmp (argv[argc], "search") == 0
|
|| strcmp (argv[argc], "search") == 0
|
||||||
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
|
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user