]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: cgroup: Test open-time credential 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)
commit37a0707b732d61fd173d7bc4d562f6e2b3b13be5
tree5556aa81ceeed1f035d60bb5f72fe15edf1157cf
parentedcec11913edd9c48ae6b7e90a875cf6a2b42a95
selftests: cgroup: Test open-time credential usage for migration checks

When a task is writing to an fd opened by a different task, the perm check
should use the credentials 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