Skip to content

Commit e4f63bf

Browse files
committed
pidns: ioctl: unshare05: Require kconfig CONFIG_PID_NS, CONFIG_USER_NS
CLONE_NEWPID flag require kconfig CONFIG_PID_NS, CLONE_NEWUSER require CONFIG_USER_NS. Followup to 6aa4d0e. Link: https://lore.kernel.org/ltp/20260130002041.124571-1-pvorel@suse.cz/ Reviewed-by: Li Wang <liwang@redhat.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent b63ab54 commit e4f63bf

File tree

15 files changed

+61
-0
lines changed

15 files changed

+61
-0
lines changed

testcases/kernel/containers/pidns/pidns04.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ static struct tst_test test = {
4949
.test_all = run,
5050
.needs_root = 1,
5151
.forks_child = 1,
52+
.needs_kconfigs = (const char *[]) {
53+
"CONFIG_PID_NS",
54+
NULL,
55+
},
5256
};

testcases/kernel/containers/pidns/pidns05.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,8 @@ static struct tst_test test = {
116116
.needs_root = 1,
117117
.needs_checkpoints = 1,
118118
.forks_child = 1,
119+
.needs_kconfigs = (const char *[]) {
120+
"CONFIG_PID_NS",
121+
NULL,
122+
},
119123
};

testcases/kernel/containers/pidns/pidns06.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ static struct tst_test test = {
4343
.test_all = run,
4444
.needs_root = 1,
4545
.forks_child = 1,
46+
.needs_kconfigs = (const char *[]) {
47+
"CONFIG_PID_NS",
48+
NULL,
49+
},
4650
};

testcases/kernel/containers/pidns/pidns10.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ static struct tst_test test = {
4242
.test_all = run,
4343
.needs_root = 1,
4444
.forks_child = 1,
45+
.needs_kconfigs = (const char *[]) {
46+
"CONFIG_PID_NS",
47+
NULL,
48+
},
4549
};

testcases/kernel/containers/pidns/pidns13.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,8 @@ static struct tst_test test = {
125125
.needs_root = 1,
126126
.needs_checkpoints = 1,
127127
.forks_child = 1,
128+
.needs_kconfigs = (const char *[]) {
129+
"CONFIG_PID_NS",
130+
NULL,
131+
},
128132
};

testcases/kernel/containers/pidns/pidns16.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,8 @@ static struct tst_test test = {
8282
.needs_root = 1,
8383
.needs_checkpoints = 1,
8484
.forks_child = 1,
85+
.needs_kconfigs = (const char *[]) {
86+
"CONFIG_PID_NS",
87+
NULL,
88+
},
8589
};

testcases/kernel/containers/pidns/pidns17.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ static struct tst_test test = {
6767
.test_all = run,
6868
.needs_root = 1,
6969
.forks_child = 1,
70+
.needs_kconfigs = (const char *[]) {
71+
"CONFIG_PID_NS",
72+
NULL,
73+
},
7074
};

testcases/kernel/containers/pidns/pidns30.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,8 @@ static struct tst_test test = {
116116
.forks_child = 1,
117117
.needs_root = 1,
118118
.needs_checkpoints = 1,
119+
.needs_kconfigs = (const char *[]) {
120+
"CONFIG_PID_NS",
121+
NULL,
122+
},
119123
};

testcases/kernel/containers/pidns/pidns31.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,8 @@ static struct tst_test test = {
113113
.forks_child = 1,
114114
.needs_root = 1,
115115
.needs_checkpoints = 1,
116+
.needs_kconfigs = (const char *[]) {
117+
"CONFIG_PID_NS",
118+
NULL,
119+
},
116120
};

testcases/kernel/containers/pidns/pidns32.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ static struct tst_test test = {
6767
.setup = setup,
6868
.cleanup = cleanup,
6969
.forks_child = 1,
70+
.needs_kconfigs = (const char *[]) {
71+
"CONFIG_PID_NS",
72+
NULL,
73+
},
7074
};

0 commit comments

Comments
 (0)