mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
First testcase "pidns_init_via_setns" checks that a process can become Pid 1 (init) in a new Pid namespace created via unshare() and joined via setns(). Second testcase "pidns_init_via_setns_set_tid" checks that during this process we can use clone3() + set_tid and set the pid in both the new and old pid namespaces (owned by different user namespaces). This test requires root to run to avoid complex setup for wrapper userns. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> -- pidns_init_via_setns. Make pidns_init_via_setns_set_tid require root. Link: https://patch.msgid.link/20260318122157.280595-5-ptikhomirov@virtuozzo.com v6: Move wrapper userns creation for unprivileged case to the top of Signed-off-by: Christian Brauner <brauner@kernel.org>
9 lines
189 B
Makefile
9 lines
189 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS += -g $(KHDR_INCLUDES)
|
|
|
|
TEST_GEN_PROGS = regression_enomem pid_max pidns_init_via_setns
|
|
|
|
LOCAL_HDRS += $(selfdir)/pidfd/pidfd.h
|
|
|
|
include ../lib.mk
|