[PATCH v2] selftests/binderfs: Add CONFIG_USER_NS dependency
From: Wake Liu
Date: Sat Aug 09 2025 - 05:26:23 EST
The binderfs selftests, specifically binderfs_stress and
binderfs_test_unprivileged, depend on user namespaces to run.
On kernels built without user namespace support (CONFIG_USER_NS=n),
these tests will fail.
Instead of adding a runtime check, indicate the dependency on
CONFIG_USER_NS in the selftest config file. This allows the
test runner to skip the tests if the required config is not enabled.
Signed-off-by: Wake Liu <wakel@xxxxxxxxxx>
---
V1 -> V2: Use selftest config to declare dependency instead of a runtime check.
---
tools/testing/selftests/filesystems/binderfs/config | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/filesystems/binderfs/config b/tools/testing/selftests/filesystems/binderfs/config
index 7b4fc6ee6205..7d5f941d03a8 100644
--- a/tools/testing/selftests/filesystems/binderfs/config
+++ b/tools/testing/selftests/filesystems/binderfs/config
@@ -1,2 +1,3 @@
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_IPC=y
+CONFIG_USER_NS=y
\ No newline at end of file
--
2.50.1.703.g449372360f-goog