2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/tools/testing/selftests/clone3
Adrian Reber 1d27a0be16
selftests: add clone3() CAP_CHECKPOINT_RESTORE test
This adds a test that changes its UID, uses capabilities to
get CAP_CHECKPOINT_RESTORE and uses clone3() with set_tid to
create a process with a given PID as non-root.

Signed-off-by: Adrian Reber <areber@redhat.com>
Link: https://lore.kernel.org/r/20200719100418.2112740-8-areber@redhat.com
[christian.brauner@ubuntu.com: use TH_LOG() instead of ksft_print_msg()]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-07-20 15:47:42 +02:00
..
.gitignore selftests: add clone3() CAP_CHECKPOINT_RESTORE test 2020-07-20 15:47:42 +02:00
clone3_cap_checkpoint_restore.c selftests: add clone3() CAP_CHECKPOINT_RESTORE test 2020-07-20 15:47:42 +02:00
clone3_clear_sighand.c selftests/clone3: skip if clone3() is ENOSYS 2019-11-18 08:59:03 +01:00
clone3_selftests.h selftests/cgroup: add tests for cloning into cgroups 2020-02-12 17:57:51 -05:00
clone3_set_tid.c selftests/clone3: skip if clone3() is ENOSYS 2019-11-18 08:59:03 +01:00
clone3.c selftests/clone3: skip if clone3() is ENOSYS 2019-11-18 08:59:03 +01:00
Makefile selftests: add clone3() CAP_CHECKPOINT_RESTORE test 2020-07-20 15:47:42 +02:00