Skip to contentSkip to conversation

selftests/fscontext_ns: expect EINVAL for overlay descendant userns create

PATCH New Amir Goldstein 1 participant 1 message Nov 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Fixes a518e63c3775 ("ovl: return EINVAL instead of EIO in case of mismatched user_ns")
---
 .../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
index 0f30a3e6e197d..535bf1f4e1a30 100644
@@ -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