mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
[v5.6-rhel] rootless_linux.c: use shortcut for system commands
There doesn't seem any reason why the system commands should not join the userns. In particular the main commands use ParentNSRequired and UnshareNSRequired when they don't want to be joined to the main userns. Since the system command don't set these the go code does the join and re-exec anyway so might as well use the shortcut to speed that up. Signed-off-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
parent
fddf28a38b
commit
c2b4757a2c
1 changed files with 1 additions and 2 deletions
|
|
@ -384,8 +384,7 @@ can_use_shortcut (char **argv)
|
|||
|| strcmp (argv[argc], "version") == 0
|
||||
|| strcmp (argv[argc], "context") == 0
|
||||
|| strcmp (argv[argc], "search") == 0
|
||||
|| strcmp (argv[argc], "compose") == 0
|
||||
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
|
||||
|| strcmp (argv[argc], "compose") == 0)
|
||||
{
|
||||
ret = false;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue