attach: try to always drop supplementary groups

parent 1223bf7a
......@@ -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 &&
......
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