]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: cgroup: Test open-time cgroup namespace usage for migration checks
authorTejun Heo <tj@kernel.org>
Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)
commit175150796914246af3951fe19b0a2801730cbfd4
treec02d6cfa826fd93e963ce179af5a611718480e65
parente5ef8db7d521c7cab5ffcdf41d8370d862d41e5c
selftests: cgroup: Test open-time cgroup namespace usage for migration checks

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>
tools/testing/selftests/cgroup/test_core.c