Skip to content
Unverified Commit 1d27a0be authored by Adrian Reber's avatar Adrian Reber Committed by Christian Brauner
Browse files

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: default avatarAdrian 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: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 227175b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment