[LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS

Petr Vorel pvorel@suse.cz
Fri Jan 30 11:46:22 CET 2026


> Hi!
> > ---
> > Probably after the release.

> This looks obviously correct hence I would dare to merge before the
> release.

Thanks, merged!

In the end added these three tests, clone304.c required also CONFIG_USER_NS
(uses CLONE_NEWUSER).

I guess that was the last one before the release.

Kind regards,
Petr

+++ testcases/kernel/syscalls/clone/clone11.c
@@ -69,6 +69,10 @@ static struct tst_test test = {
 		TST_CAP(TST_CAP_DROP, CAP_SYS_ADMIN),
 		{},
 	},
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_PID_NS",
+		NULL,
+	},
 	.bufs = (struct tst_buffers[]) {
 		{&child_stack, .size = CHILD_STACK_SIZE},
 		{},
diff --git testcases/kernel/syscalls/clone3/clone301.c testcases/kernel/syscalls/clone3/clone301.c
index deed30b9f0..902e890919 100644
--- testcases/kernel/syscalls/clone3/clone301.c
+++ testcases/kernel/syscalls/clone3/clone301.c
@@ -176,6 +176,10 @@ static struct tst_test test = {
 	.setup = setup,
 	.needs_root = 1,
 	.needs_checkpoints = 1,
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_PID_NS",
+		NULL,
+	},
 	.bufs = (struct tst_buffers []) {
 		{&args, .size = sizeof(*args)},
 		{},
diff --git testcases/kernel/syscalls/clone3/clone304.c testcases/kernel/syscalls/clone3/clone304.c
index 9faaf44bb2..f0ef7d7e81 100644
--- testcases/kernel/syscalls/clone3/clone304.c
+++ testcases/kernel/syscalls/clone3/clone304.c
@@ -80,6 +80,11 @@ static struct tst_test test = {
 		TST_CAP(TST_CAP_DROP, CAP_SYS_ADMIN),
 		{},
 	},
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_USER_NS",
+		"CONFIG_PID_NS",
+		NULL,
+	},
 	.bufs = (struct tst_buffers[]) {
 		{&args, .size = sizeof(struct clone_args)},
 		{},


More information about the ltp mailing list