Ubuntu-focal-kernel/tools/testing/selftests/cgroup
Tejun Heo 7cff026fab selftests: cgroup: Test open-time cgroup namespace usage for migration checks
BugLink: https://bugs.launchpad.net/bugs/1971497

commit bf35a7879f1dfb0d050fe779168bcf25c7de66f5 upstream.

When a task is writing to an fd opened by a different task, the perm check
should use the cgroup namespace of the latter task. Add a test for it.

Tested-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
[OP: backport to v5.4: adjust context, add wait.h and fcntl.h includes]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-05-20 15:20:06 +02:00
..
.gitignore
Makefile
cgroup_util.c selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644 2022-05-20 15:20:06 +02:00
cgroup_util.h
test_core.c selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-05-20 15:20:06 +02:00
test_freezer.c
test_memcontrol.c