summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/Makefile
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-03-23 17:41:08 +0100
committerChristian Brauner <brauner@kernel.org>2026-04-14 09:31:07 +0200
commit660c09404cdabfe969d58375e990d2955af59797 (patch)
tree84fd3f55cc6a67197119c4bd6299e322a7461e7d /tools/testing/selftests/Makefile
parentd38aa6cdee8e09d77ce3a6c5b04800fb3b146d69 (diff)
downloadlwn-660c09404cdabfe969d58375e990d2955af59797.tar.gz
lwn-660c09404cdabfe969d58375e990d2955af59797.zip
selftests/fsmount_ns: add missing TARGETS and fix cap test
Add missing top-level kselftest TARGETS entries for empty_mntns and fsmount_ns so that 'make kselftest' discovers and runs these tests. Fix requires_cap_sys_admin test which always SKIPped because fsopen() was called after enter_userns(), where CAP_SYS_ADMIN in the mount namespace's user_ns is unavailable. Move fsopen/fsconfig before fork so the configured fs_fd is inherited by the child, which then only needs to call fsmount() after dropping privileges. Fixes: 3ac7ea91f3d0 ("selftests: add FSMOUNT_NAMESPACE tests") Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/Makefile')
-rw-r--r--tools/testing/selftests/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 2d05b3e1a26e..5677dd8b2a76 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -39,6 +39,8 @@ TARGETS += filesystems/statmount
TARGETS += filesystems/mount-notify
TARGETS += filesystems/fuse
TARGETS += filesystems/move_mount
+TARGETS += filesystems/empty_mntns
+TARGETS += filesystems/fsmount_ns
TARGETS += firmware
TARGETS += fpu
TARGETS += ftrace