Skip to content

Commit 6aa4d0e

Browse files
Obsnoldpevik
authored andcommitted
ioctl_pidfd0[2-6]: Add CONFIG_USER_NS and CONFIG_PID_NS to needs_kconfigs
The flags CLONE_NEWUSER and CLONE_NEWPID require specific namespace support. Add CONFIG_USER_NS and CONFIG_PID_NS to needs_kconfigs so these tests return TCONF instead of failing. Link: https://lore.kernel.org/ltp/20251209211629.95436-1-terry.tritton@linaro.org/ Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
1 parent c075f6c commit 6aa4d0e

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

testcases/kernel/syscalls/ioctl/ioctl_pidfd02.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,10 @@ static struct tst_test test = {
8181
{&info0, .size = sizeof(*info0)},
8282
{&info1, .size = sizeof(*info1)},
8383
{}
84+
},
85+
.needs_kconfigs = (const char *[]) {
86+
"CONFIG_USER_NS",
87+
"CONFIG_PID_NS",
88+
NULL
8489
}
8590
};

testcases/kernel/syscalls/ioctl/ioctl_pidfd03.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,10 @@ static struct tst_test test = {
6060
{&args, .size = sizeof(*args)},
6161
{&info, .size = sizeof(*info)},
6262
{}
63+
},
64+
.needs_kconfigs = (const char *[]) {
65+
"CONFIG_USER_NS",
66+
"CONFIG_PID_NS",
67+
NULL
6368
}
6469
};

testcases/kernel/syscalls/ioctl/ioctl_pidfd04.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,10 @@ static struct tst_test test = {
6767
{&args, .size = sizeof(*args)},
6868
{&info, .size = sizeof(*info)},
6969
{}
70+
},
71+
.needs_kconfigs = (const char *[]) {
72+
"CONFIG_USER_NS",
73+
"CONFIG_PID_NS",
74+
NULL
7075
}
7176
};

testcases/kernel/syscalls/ioctl/ioctl_pidfd05.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,10 @@ static struct tst_test test = {
7171
{&args, .size = sizeof(*args)},
7272
{&info_invalid, .size = sizeof(*info_invalid)},
7373
{}
74+
},
75+
.needs_kconfigs = (const char *[]) {
76+
"CONFIG_USER_NS",
77+
"CONFIG_PID_NS",
78+
NULL
7479
}
7580
};

testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,10 @@ static struct tst_test test = {
6262
{&args, .size = sizeof(*args)},
6363
{&info, .size = sizeof(*info)},
6464
{}
65+
},
66+
.needs_kconfigs = (const char *[]) {
67+
"CONFIG_USER_NS",
68+
"CONFIG_PID_NS",
69+
NULL
6570
}
6671
};

0 commit comments

Comments
 (0)