Unverified Commit c37c7b91 by Stéphane Graber Committed by GitHub

Merge pull request #3540 from brauner/2020-09-17/fixes_2

lxc-usernsexec: setgroups() similar to other places shouldn't fail on…
parents b324a255 3f6e5c83
......@@ -88,7 +88,7 @@ static int do_child(void *vargv)
int ret;
char **argv = (char **)vargv;
if (!lxc_setgroups(0, NULL))
if (!lxc_setgroups(0, NULL) && errno != EPERM)
return -1;
/* Assume we want to become root */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment