[lxc-devel] [PATCH] cgmanager: don't make tasks + cgroup.procs +x
Tycho Andersen
tycho.andersen at canonical.com
Wed Jan 13 07:59:59 UTC 2016
No reason for these to be +x, and it looks weird.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
src/lxc/cgmanager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lxc/cgmanager.c b/src/lxc/cgmanager.c
index 5596285..357182a 100644
--- a/src/lxc/cgmanager.c
+++ b/src/lxc/cgmanager.c
@@ -509,9 +509,9 @@ static bool chown_cgroup(const char *cgroup_path, struct lxc_conf *conf)
for (i = 0; slist[i]; i++) {
if (!lxc_cgmanager_chmod(slist[i], cgroup_path, "", 0775))
return false;
- if (!lxc_cgmanager_chmod(slist[i], cgroup_path, "tasks", 0775))
+ if (!lxc_cgmanager_chmod(slist[i], cgroup_path, "tasks", 0664))
return false;
- if (!lxc_cgmanager_chmod(slist[i], cgroup_path, "cgroup.procs", 0775))
+ if (!lxc_cgmanager_chmod(slist[i], cgroup_path, "cgroup.procs", 0664))
return false;
}
--
2.6.4
More information about the lxc-devel
mailing list