[lxc-devel] [lxc/master] cgroups: use correct mask for chmod()

brauner on Github lxc-bot at linuxcontainers.org
Wed Feb 14 23:29:30 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180214/b65b9400/attachment.bin>
-------------- next part --------------
From 63e42fee6e522a90a5753357e109d79e29d19fb9 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Thu, 15 Feb 2018 00:28:42 +0100
Subject: [PATCH] cgroups: use correct mask for chmod()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/cgroups/cgfsng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index 3a9c20011..826ea600b 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -1833,7 +1833,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;
 


More information about the lxc-devel mailing list