mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 19:51:15 +00:00
attach: try to always drop supplementary groups
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
3d435963b7
commit
96ec54acf8
@ -873,7 +873,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = lxc_setgroups(0, NULL);
|
ret = lxc_setgroups(0, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0 && errno != EPERM)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
if ((init_ctx->container && init_ctx->container->lxc_conf &&
|
if ((init_ctx->container && init_ctx->container->lxc_conf &&
|
||||||
|
Loading…
Reference in New Issue
Block a user