diff options
author | Tejun Heo <tj@kernel.org> | 2022-04-14 12:07:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-15 14:15:07 +0200 |
commit | 86be2e7111e20b6b57850e9d203276c89af117da (patch) | |
tree | 26bca71e01a09f36026abcab2693ff08da4c0376 /net/key | |
parent | 81c22cf89126ae52e7751b0bb11e1c54e72c3a88 (diff) | |
download | linux-stable-86be2e7111e20b6b57850e9d203276c89af117da.tar.gz linux-stable-86be2e7111e20b6b57850e9d203276c89af117da.tar.bz2 linux-stable-86be2e7111e20b6b57850e9d203276c89af117da.zip |
selftests: cgroup: Test open-time cgroup namespace usage for migration checks
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 v4.19: 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>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions