From 20862c9746e9f0c4ec37e9d9e914f02a82acfb60 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 12 Jun 2018 18:47:27 +0200 Subject: rootless: do not configure additional groups Additional groups are not allowed in an userNS. Signed-off-by: Giuseppe Scrivano Closes: #936 Approved by: rhatdan --- pkg/rootless/rootless_linux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/rootless/rootless_linux.c') diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index f107af7c7..163f46052 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -66,6 +66,8 @@ get_cmd_line_args (pid_t pid) argc++; argv = malloc (sizeof (char *) * (argc + 1)); + if (argv == NULL) + return NULL; argc = 0; argv[argc++] = buffer; -- cgit v1.2.3-54-g00ecf