mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +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;
|
||||
|
||||
if (strcmp (argv[argc], "mount") == 0
|
||||
|| strcmp (argv[argc], "machine") == 0
|
||||
|| strcmp (argv[argc], "search") == 0
|
||||
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
|
||||
{
|
||||
|
Reference in New Issue
Block a user