Skip to content

Commit

Permalink
attach: try to always drop supplementary groups
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Apr 20, 2018
1 parent 1223bf7 commit 315350e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/attach.c
Expand Up @@ -873,7 +873,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
}

ret = lxc_setgroups(0, NULL);
if (ret < 0)
if (ret < 0 && errno != EPERM)
goto on_error;

if ((init_ctx->container && init_ctx->container->lxc_conf &&
Expand Down

0 comments on commit 315350e

Please sign in to comment.