]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgmanager: don't make tasks + cgroup.procs +x
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 13 Jan 2016 07:59:59 +0000 (00:59 -0700)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Jan 2016 10:58:57 +0000 (11:58 +0100)
No reason for these to be +x, and it looks weird.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgmanager.c

index 614f6e7b3439c7559d94379241756833cf7f3049..79912c08c14c800e6728be0652f37c7ad36056db 100644 (file)
@@ -501,9 +501,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;
        }