* [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS
@ 2026-01-30 0:20 Petr Vorel
2026-01-30 6:48 ` Li Wang via ltp
2026-01-30 10:30 ` Cyril Hrubis
0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2026-01-30 0:20 UTC (permalink / raw)
To: ltp; +Cc: Terry Tritton
CLONE_NEWPID flag require kconfig CONFIG_PID_NS. Followup to 6aa4d0e08f.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Probably after the release.
I'm not sure about these 3, probably they also require it:
testcases/kernel/syscalls/clone/clone11.c
testcases/kernel/syscalls/clone3/clone301.c
testcases/kernel/syscalls/clone3/clone304.c
This one checks for "/proc/self/ns/pid", but it would not harm to add
kconfig as well
testcases/kernel/syscalls/ioctl/ioctl_ns01.c
NOTE: I haven't checked CONFIG_USER_NS.
testcases/kernel/containers/pidns/pidns04.c | 4 ++++
testcases/kernel/containers/pidns/pidns05.c | 4 ++++
testcases/kernel/containers/pidns/pidns06.c | 4 ++++
testcases/kernel/containers/pidns/pidns10.c | 4 ++++
testcases/kernel/containers/pidns/pidns13.c | 4 ++++
testcases/kernel/containers/pidns/pidns16.c | 4 ++++
testcases/kernel/containers/pidns/pidns17.c | 4 ++++
testcases/kernel/containers/pidns/pidns30.c | 4 ++++
testcases/kernel/containers/pidns/pidns31.c | 4 ++++
testcases/kernel/containers/pidns/pidns32.c | 4 ++++
testcases/kernel/syscalls/ioctl/ioctl_ns05.c | 4 ++++
testcases/kernel/syscalls/unshare/unshare05.c | 4 ++++
12 files changed, 48 insertions(+)
diff --git a/testcases/kernel/containers/pidns/pidns04.c b/testcases/kernel/containers/pidns/pidns04.c
index ff106780ad..1594cfc5b3 100644
--- a/testcases/kernel/containers/pidns/pidns04.c
+++ b/testcases/kernel/containers/pidns/pidns04.c
@@ -49,4 +49,8 @@ static struct tst_test test = {
.test_all = run,
.needs_root = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns05.c b/testcases/kernel/containers/pidns/pidns05.c
index b1666f233a..4b0478c84c 100644
--- a/testcases/kernel/containers/pidns/pidns05.c
+++ b/testcases/kernel/containers/pidns/pidns05.c
@@ -116,4 +116,8 @@ static struct tst_test test = {
.needs_root = 1,
.needs_checkpoints = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns06.c b/testcases/kernel/containers/pidns/pidns06.c
index b79a5d4010..a3d289b0ec 100644
--- a/testcases/kernel/containers/pidns/pidns06.c
+++ b/testcases/kernel/containers/pidns/pidns06.c
@@ -43,4 +43,8 @@ static struct tst_test test = {
.test_all = run,
.needs_root = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns10.c b/testcases/kernel/containers/pidns/pidns10.c
index ab6a7a4acf..c65626fde0 100644
--- a/testcases/kernel/containers/pidns/pidns10.c
+++ b/testcases/kernel/containers/pidns/pidns10.c
@@ -42,4 +42,8 @@ static struct tst_test test = {
.test_all = run,
.needs_root = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns13.c b/testcases/kernel/containers/pidns/pidns13.c
index 1ea9f5cd33..4334a004d8 100644
--- a/testcases/kernel/containers/pidns/pidns13.c
+++ b/testcases/kernel/containers/pidns/pidns13.c
@@ -125,4 +125,8 @@ static struct tst_test test = {
.needs_root = 1,
.needs_checkpoints = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns16.c b/testcases/kernel/containers/pidns/pidns16.c
index 8867a132b5..000dc5c83d 100644
--- a/testcases/kernel/containers/pidns/pidns16.c
+++ b/testcases/kernel/containers/pidns/pidns16.c
@@ -82,4 +82,8 @@ static struct tst_test test = {
.needs_root = 1,
.needs_checkpoints = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns17.c b/testcases/kernel/containers/pidns/pidns17.c
index 3a85d96725..fb28b8adea 100644
--- a/testcases/kernel/containers/pidns/pidns17.c
+++ b/testcases/kernel/containers/pidns/pidns17.c
@@ -67,4 +67,8 @@ static struct tst_test test = {
.test_all = run,
.needs_root = 1,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns30.c b/testcases/kernel/containers/pidns/pidns30.c
index 409b37ec18..441dd06c6c 100644
--- a/testcases/kernel/containers/pidns/pidns30.c
+++ b/testcases/kernel/containers/pidns/pidns30.c
@@ -116,4 +116,8 @@ static struct tst_test test = {
.forks_child = 1,
.needs_root = 1,
.needs_checkpoints = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns31.c b/testcases/kernel/containers/pidns/pidns31.c
index a8d737091d..32e6e2c20e 100644
--- a/testcases/kernel/containers/pidns/pidns31.c
+++ b/testcases/kernel/containers/pidns/pidns31.c
@@ -113,4 +113,8 @@ static struct tst_test test = {
.forks_child = 1,
.needs_root = 1,
.needs_checkpoints = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/containers/pidns/pidns32.c b/testcases/kernel/containers/pidns/pidns32.c
index a192c128d6..fc9bf0aaa0 100644
--- a/testcases/kernel/containers/pidns/pidns32.c
+++ b/testcases/kernel/containers/pidns/pidns32.c
@@ -67,4 +67,8 @@ static struct tst_test test = {
.setup = setup,
.cleanup = cleanup,
.forks_child = 1,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ns05.c b/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
index e84af38b67..ccc21687a5 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
@@ -103,4 +103,8 @@ static struct tst_test test = {
.min_kver = "4.9",
.setup = setup,
.cleanup = cleanup,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
};
diff --git a/testcases/kernel/syscalls/unshare/unshare05.c b/testcases/kernel/syscalls/unshare/unshare05.c
index 3185d4d2aa..a9bd864e13 100644
--- a/testcases/kernel/syscalls/unshare/unshare05.c
+++ b/testcases/kernel/syscalls/unshare/unshare05.c
@@ -41,6 +41,10 @@ static struct tst_test test = {
.forks_child = 1,
.needs_root = 1,
.test_all = run,
+ .needs_kconfigs = (const char *[]) {
+ "CONFIG_PID_NS",
+ NULL,
+ },
.bufs = (struct tst_buffers []) {
{&args, .size = sizeof(*args)},
{},
--
2.51.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS
2026-01-30 0:20 [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS Petr Vorel
@ 2026-01-30 6:48 ` Li Wang via ltp
2026-01-30 10:30 ` Cyril Hrubis
1 sibling, 0 replies; 4+ messages in thread
From: Li Wang via ltp @ 2026-01-30 6:48 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp, Terry Tritton
On Fri, Jan 30, 2026 at 8:20 AM Petr Vorel <pvorel@suse.cz> wrote:
> CLONE_NEWPID flag require kconfig CONFIG_PID_NS. Followup to 6aa4d0e08f.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
>
Reviewed-by: Li Wang <liwang@redhat.com>
---
> Probably after the release.
>
> I'm not sure about these 3, probably they also require it:
> testcases/kernel/syscalls/clone/clone11.c
> testcases/kernel/syscalls/clone3/clone301.c
> testcases/kernel/syscalls/clone3/clone304.c
>
I think the answer is Yes.
> This one checks for "/proc/self/ns/pid", but it would not harm to add
> kconfig as well
> testcases/kernel/syscalls/ioctl/ioctl_ns01.c
>
+1, and we could drop the checks once we have kconfig hooks.
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS
2026-01-30 0:20 [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS Petr Vorel
2026-01-30 6:48 ` Li Wang via ltp
@ 2026-01-30 10:30 ` Cyril Hrubis
2026-01-30 10:46 ` Petr Vorel
1 sibling, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2026-01-30 10:30 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp, Terry Tritton
Hi!
> ---
> Probably after the release.
This looks obviously correct hence I would dare to merge before the
release.
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS
2026-01-30 10:30 ` Cyril Hrubis
@ 2026-01-30 10:46 ` Petr Vorel
0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2026-01-30 10:46 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp, Terry Tritton
> 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)},
{},
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-30 10:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30 0:20 [LTP] [PATCH 1/1] pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS Petr Vorel
2026-01-30 6:48 ` Li Wang via ltp
2026-01-30 10:30 ` Cyril Hrubis
2026-01-30 10:46 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox