add missing cgroup namespace to ns_info struct

Signed-off-by: Christian Brauner <cbrauner@suse.de>
This commit is contained in:
Christian Brauner 2016-07-11 22:48:48 +02:00
parent c7d5c3e508
commit ceecc92c42
2 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,8 @@ const struct ns_info ns_info[LXC_NS_MAX] = {
[LXC_NS_UTS] = {"uts", CLONE_NEWUTS},
[LXC_NS_IPC] = {"ipc", CLONE_NEWIPC},
[LXC_NS_USER] = {"user", CLONE_NEWUSER},
[LXC_NS_NET] = {"net", CLONE_NEWNET}
[LXC_NS_NET] = {"net", CLONE_NEWNET},
[LXC_NS_CGROUP] = {"cgroup", CLONE_NEWCGROUP}
};
extern void mod_all_rdeps(struct lxc_container *c, bool inc);

View File

@ -49,6 +49,7 @@ enum {
LXC_NS_IPC,
LXC_NS_USER,
LXC_NS_NET,
LXC_NS_CGROUP,
LXC_NS_MAX
};