idmapped mounts: extend testsuite and fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | idmapped-mounts: remove unused set_cloexec() helpersrc/ | +0 | 0 replies | |
| 2/7 | idmapped-mounts: add missing newline to print_r()src/ | +1 | 0 replies | |
| 3/7 | idmapped-mounts: split out run_test() functionsrc/ | +41 | 0 replies | |
| 4/7 | generic/637: add fscaps regression test.gitignore src/ src/ +3 more | +188 | 1 reply | |
| 5/7 | idmapped-mounts: refactor helperssrc/ src/ src/ | +223 | 0 replies | |
| 6/7 | idmapped-mounts: add nested userns creation helperssrc/ src/ src/ +1 more | +185 | 0 replies | |
| 7/7 | generic/638: add nested user namespace tests.gitignore src/ src/ +4 more | +771 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] idmapped mounts: extend testsuite and fixes
From: Christian Brauner <[email protected]>
Hey,
This introduces two new idmapped mount tests.
The first test extends the v3 fscaps tests for idmapped mounts. The second test verified that idmapped mounts behave correctly when nested user namespaces are used. In essence it creates a fairly complex nested user namespace hierarchy and then tests whether file ownership changes are correctly reflected in all idmapped mounts as seen from all those user namespaces.
In addition this fixes a couple of minor things and shares more code between the mount-idmapped and idmapped-mounts binaries.
Thanks!
Christian
Christian Brauner (7):
idmapped-mounts: remove unused set_cloexec() helper
idmapped-mounts: add missing newline to print_r()
idmapped-mounts: split out run_test() function generic/637: add fscaps regression test
idmapped-mounts: refactor helpers
idmapped-mounts: add nested userns creation helpers generic/638: add nested user namespace tests
.gitignore | 2 + src/idmapped-mounts/Makefile | 16 +- src/idmapped-mounts/idmapped-mounts.c | 931 ++++++++++++++++++++++++-- src/idmapped-mounts/mount-idmapped.c | 228 +------ src/idmapped-mounts/utils.c | 359 ++++++++-- src/idmapped-mounts/utils.h | 102 ++- tests/generic/637 | 42 ++ tests/generic/637.out | 2 + tests/generic/638 | 42 ++ tests/generic/638.out | 2 + tests/generic/group | 2 + 11 files changed, 1397 insertions(+), 331 deletions(-) create mode 100755 tests/generic/637 create mode 100644 tests/generic/637.out create mode 100755 tests/generic/638 create mode 100644 tests/generic/638.out
base-commit: 40818883aecd19581a71cc096d07eb9106c11b10
Signature · 1 line
2.27.0