Skip to content

Commit

Permalink
Merge pull request lxc#2270 from brauner/2018-04-11/attach_try_droppi…
Browse files Browse the repository at this point in the history
…ng_supplementary_groups

attach: try to always drop supplementary groups
  • Loading branch information
hallyn authored Apr 11, 2018
2 parents 33c7c7f + 96ec54a commit 855452a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/attach.c
Original file line number Diff line number Diff line change
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 855452a

Please sign in to comment.