]> 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, 17 Nov 2016 22:44:37 +0000 (17:44 -0500)
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 19b778d0e7cf920990a99dbc6a207491ad1e5cef..8ccadaa0eea6ac034b0514e4c26982b2fd7fc661 100644 (file)
@@ -502,9 +502,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;
        }