Merge pull request #2143 from brauner/2018-02-08/fix_cgroup_ns

start: check for cgroup namespace support
This commit is contained in:
Stéphane Graber 2018-02-08 18:07:51 -05:00 committed by GitHub
commit 17eba7a26f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1355,6 +1355,9 @@ int resolve_clone_flags(struct lxc_handler *handler)
if (i == LXC_NS_NET && lxc_requests_empty_network(handler))
continue;
if (i == LXC_NS_CGROUP && !cgns_supported())
continue;
handler->clone_flags |= ns_info[i].clone_flag;
}