]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644
authorTejun Heo <tj@kernel.org>
Thu, 14 Apr 2022 09:06:58 +0000 (12:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:15:07 +0000 (14:15 +0200)
commit135117aa4055e13cd7c47e61093b5f1a15901fb3
tree250f84a7e8b7378c1f3167c141195c0c097f6cfa
parent74ac12c718e7d3f7eb346ee90a4c9904a8b6b6d2
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644

commit b09c2baa56347ae65795350dfcc633dedb1c2970 upstream.

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>
[OP: backport to 4.19: adjust context]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/cgroup/cgroup_util.c