Unverified Commit 421a68d6 by Stéphane Graber Committed by GitHub

Merge pull request #2780 from brauner/2019-01-10/cgroupns_skip_on_einval

start: handle missing CLONE_NEWCGROUP
parents 888aad37 bca7c59c
......@@ -1252,10 +1252,16 @@ static int do_start(void *data)
if (handler->ns_clone_flags & CLONE_NEWCGROUP) {
ret = unshare(CLONE_NEWCGROUP);
if (ret < 0) {
INFO("Failed to unshare CLONE_NEWCGROUP");
goto out_warn_father;
if (errno != EINVAL) {
SYSERROR("Failed to unshare CLONE_NEWCGROUP");
goto out_warn_father;
}
handler->ns_clone_flags &= ~CLONE_NEWCGROUP;
SYSINFO("Kernel does not support CLONE_NEWCGROUP");
} else {
INFO("Unshared CLONE_NEWCGROUP");
}
INFO("Unshared CLONE_NEWCGROUP");
}
/* Add the requested environment variables to the current environment to
......
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