]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: use correct mask for chmod()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 14 Feb 2018 23:28:42 +0000 (00:28 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 12:47:45 +0000 (13:47 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 63fb33fa2cdce6615ceb9f6a4f72383b7f8ea460..380fb22f503c9061b202c38fc1a5cd1e6a74aabd 100644 (file)
@@ -1813,7 +1813,7 @@ static int chown_cgroup_wrapper(void *data)
                char *fullpath;
                char *path = hierarchies[i]->fullcgpath;
 
-               ret = chowmod(path, destuid, nsgid, 0755);
+               ret = chowmod(path, destuid, nsgid, 0775);
                if (ret < 0)
                        return -1;