Commit 592efeb
committed
selftests/landlock: Don't create useless file layouts
Add and use a layout0 test fixture to not populate the tmpfs filesystem
if it is not required for tests: unknown_access_rights, proc_nsfs,
unpriv and max_layers.
This doesn't change these tests but it speeds up their setup and makes
them less prone to error. This prepare the ground for a next commit.
Link: https://lore.kernel.org/r/20230612191430.339153-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>1 parent 74ce793 commit 592efeb
1 file changed
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
234 | 248 | | |
235 | 249 | | |
236 | 250 | | |
| |||
510 | 524 | | |
511 | 525 | | |
512 | 526 | | |
513 | | - | |
| 527 | + | |
514 | 528 | | |
515 | 529 | | |
516 | 530 | | |
| |||
608 | 622 | | |
609 | 623 | | |
610 | 624 | | |
611 | | - | |
| 625 | + | |
612 | 626 | | |
613 | 627 | | |
614 | 628 | | |
| |||
657 | 671 | | |
658 | 672 | | |
659 | 673 | | |
660 | | - | |
| 674 | + | |
661 | 675 | | |
662 | 676 | | |
663 | 677 | | |
664 | | - | |
| 678 | + | |
665 | 679 | | |
666 | 680 | | |
667 | 681 | | |
| |||
1301 | 1315 | | |
1302 | 1316 | | |
1303 | 1317 | | |
1304 | | - | |
| 1318 | + | |
1305 | 1319 | | |
1306 | 1320 | | |
1307 | 1321 | | |
1308 | 1322 | | |
1309 | | - | |
| 1323 | + | |
1310 | 1324 | | |
1311 | 1325 | | |
1312 | 1326 | | |
| |||
0 commit comments