]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:54 +0000 (11:59 +0200)
commit66dc95ae081377e0ff58a63448750666b4a45ec7
treec00edf82702f3ad8bb326b41c2f4cad48ee31e54
parent2b9fe9a9f63e4e9cc5302965c1b8ba5595fe9652
selftests: cgroup: Test open-time credential usage for migration checks

BugLink: https://bugs.launchpad.net/bugs/1969107
commit 613e040e4dc285367bff0f8f75ea59839bc10947 upstream.

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>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 47802775bc119658e59199d859ba31d62dc5e826)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/cgroup/test_core.c