From 96ec54acf8d40f23fbaf8c0c291607dbed7b29e8 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 11 Apr 2018 17:35:57 +0200 Subject: [PATCH] attach: try to always drop supplementary groups Signed-off-by: Christian Brauner --- src/lxc/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 3b7152721..e1699b137 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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 &&