projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e574576
)
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644
author
Tejun Heo
<tj@kernel.org>
Thu, 6 Jan 2022 21:02:29 +0000
(11:02 -1000)
committer
Tejun Heo
<tj@kernel.org>
Thu, 6 Jan 2022 21:02:29 +0000
(11:02 -1000)
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ý <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/cgroup_util.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/cgroup/cgroup_util.c
b/tools/testing/selftests/cgroup/cgroup_util.c
index
623cec0
..
0cf7e90
100644
(file)
--- a/
tools/testing/selftests/cgroup/cgroup_util.c
+++ b/
tools/testing/selftests/cgroup/cgroup_util.c
@@
-221,7
+221,7
@@
int cg_find_unified_root(char *root, size_t len)
int cg_create(const char *cgroup)
{
- return mkdir(cgroup, 0
644
);
+ return mkdir(cgroup, 0
755
);
}
int cg_wait_for_proc_count(const char *cgroup, int count)