From 7e58a0df8b994e4a3a53aec88dc05fe7f1b079bf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 31 May 2026 10:21:57 +0300 Subject: test(mountfs): exercise fsopen end-to-end in mount-API scenario The mountfs-management integration scenario covered the new mount API syscalls fsmount/move_mount/mount/umount/pivot_root but not fsopen, the API's entry point and a direct eventfd-kind sibling of fsmount. Add a best-effort fsopen("tmpfs", FSOPEN_CLOEXEC) call (closing the returned context fd on success) and assert enter_fsopen is traced. fsopen's tracing is otherwise correct: args[1] flags captured, args[0] fsname (a filesystem TYPE, not a path) deliberately not treated as a pathname, returned fd registered as the 'fsopenfd:' descriptor. Co-Authored-By: Claude Opus 4.8 --- integrationtests/mountfs_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'integrationtests') diff --git a/integrationtests/mountfs_test.go b/integrationtests/mountfs_test.go index ff783e7..673e9c1 100644 --- a/integrationtests/mountfs_test.go +++ b/integrationtests/mountfs_test.go @@ -4,7 +4,7 @@ import "testing" var mountfsTraceArgs = []string{ "-trace-syscalls", - "mount,umount,move_mount,fsmount,pivot_root,quotactl,statmount,listmount,listns,swapon,swapoff", + "mount,umount,move_mount,fsopen,fsmount,pivot_root,quotactl,statmount,listmount,listns,swapon,swapoff", } func TestMountFsManagementSyscalls(t *testing.T) { @@ -12,6 +12,7 @@ func TestMountFsManagementSyscalls(t *testing.T) { {Tracepoint: "enter_mount", MinCount: 1}, {Tracepoint: "enter_umount", MinCount: 1}, {Tracepoint: "enter_move_mount", MinCount: 1}, + {Tracepoint: "enter_fsopen", MinCount: 1}, {Tracepoint: "enter_fsmount", MinCount: 1}, {Tracepoint: "enter_pivot_root", MinCount: 1}, {Tracepoint: "enter_quotactl", MinCount: 1}, -- cgit v1.2.3