selftests/fscontext_ns: expect EINVAL for overlay descendant userns create
Subsystems (3)
PATCH 1/1 selftests/fscontext_ns: expect EINVAL for overlay descendant userns create
Commit a518e63c3775 ("ovl: return EINVAL instead of EIO in case of mismatched user_ns") changed the errno for completing an overlay fscontext from another user namespace. Update the overlay test variant to match binfmt_misc.
Reported-by kernel test robot <[email protected]>
Fixes a518e63c3775 ("ovl: return EINVAL instead of EIO in case of mismatched user_ns")
Signed-off-by Amir Goldstein <[email protected]>
--- .../selftests/filesystems/fscontext_ns/fscontext_ns_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c +1 -1
@@ -193,7 +193,7 @@ FIXTURE_VARIANT_ADD(fscontext_ns, binfmt_misc) { FIXTURE_VARIANT_ADD(fscontext_ns, overlay) { .fsname = "overlay", - .expected_errno =EIO , + .expected_errno =EINVAL , };TEST_F (fscontext_ns, create_from_descendant_userns)
Signature · 1 line
2.55.0