OSDN Git Service

selftests: cgroup: Add cpuset migrations testcase
authorMichal Koutný <mkoutny@suse.com>
Mon, 3 Jul 2023 17:27:41 +0000 (19:27 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 10 Jul 2023 20:29:53 +0000 (10:29 -1000)
commitcd3c6f682df4df7de74a364c34b3b10f84db271b
treefe8fdead88397e9625093476ff8d0641bbc2d982
parent12101424d7d26131495bafc2ecfa17d39b8e3c64
selftests: cgroup: Add cpuset migrations testcase

Add a separate testfile to verify treating permissions when tasks are
migrated on cgroup v2 hierarchy between cpuset cgroups.

In accordance with v2 design, migration should be allowed based on
delegation boundaries (i.e. cgroup.procs permissions) and does not
depend on the migrated object (i.e. unprivileged process can migrate
another process (even privileged) as long as it remains in the original
dedicated scope).

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
MAINTAINERS
tools/testing/selftests/cgroup/.gitignore
tools/testing/selftests/cgroup/Makefile
tools/testing/selftests/cgroup/test_cpuset.c [new file with mode: 0644]