Commit 79c59e6b by Serge Hallyn

cgfs: always handle named subsystems by default

Previously, name= controllers would be handled if lxc.cgroup.use=@all, but not if lxc.cgroup.use was unspecified. Change that, since you cannot run systemd in a container without it. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 3a828ee4
...@@ -556,7 +556,7 @@ static struct cgroup_meta_data *lxc_cgroup_load_meta2(const char **subsystem_whi ...@@ -556,7 +556,7 @@ static struct cgroup_meta_data *lxc_cgroup_load_meta2(const char **subsystem_whi
true; true;
all_named_subsystems = subsystem_whitelist ? all_named_subsystems = subsystem_whitelist ?
(lxc_string_in_array("@named", subsystem_whitelist) || lxc_string_in_array("@all", subsystem_whitelist)) : (lxc_string_in_array("@named", subsystem_whitelist) || lxc_string_in_array("@all", subsystem_whitelist)) :
false; true;
meta_data = calloc(1, sizeof(struct cgroup_meta_data)); meta_data = calloc(1, sizeof(struct cgroup_meta_data));
if (!meta_data) if (!meta_data)
......
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