diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-01-29 22:06:49 +0100 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-01-29 16:16:36 -0600 |
commit | 1d9537e242798f94d8062819d5763b656dcc5acd (patch) | |
tree | 977cd7ccf256f31262663c3df6dd156f15c67f9f /pkg/rootless/rootless_linux.c | |
parent | f8067d70b00dbc8caeb78a49fb695a4bfde157cd (diff) | |
download | podman-1d9537e242798f94d8062819d5763b656dcc5acd.tar.gz podman-1d9537e242798f94d8062819d5763b656dcc5acd.tar.bz2 podman-1d9537e242798f94d8062819d5763b656dcc5acd.zip |
rootless: enable shortcut only for podman
disable joining automatically the user namespace if the process is not
podman.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_linux.c')
-rw-r--r-- | pkg/rootless/rootless_linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index 041a161dc..83f4f3254 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -200,6 +200,9 @@ can_use_shortcut () if (argv == NULL) return false; + if (strstr (argv[0], "podman") == NULL) + return false; + for (argc = 0; argv[argc]; argc++) { if (argc == 0 || argv[argc][0] == '-') |