Skip to content

Commit b09c2ba

Browse files
committed
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644
0644 is an odd perm to create a cgroup which is a directory. Use the regular 0755 instead. This is necessary for euid switching test case. Reviewed-by: Michal Koutný <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent e574576 commit b09c2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/cgroup/cgroup_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int cg_find_unified_root(char *root, size_t len)
221221

222222
int cg_create(const char *cgroup)
223223
{
224-
return mkdir(cgroup, 0644);
224+
return mkdir(cgroup, 0755);
225225
}
226226

227227
int cg_wait_for_proc_count(const char *cgroup, int count)

0 commit comments

Comments
 (0)