test code v1

This commit is contained in:
2026-08-13 10:44:59 +02:00
commit f3b1165f19
301 changed files with 37885 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Test Case: access - Allowed Operations
**Test ID**: TC057-access-allowed
**Category**: VFS Integration
**Priority**: High
## Objective
Verify a non-root credential receives read and execute access allowed by the
recorded mode bits on the read-only mount.
## Procedure
Mount vfs/vfs-plain.erofs and run with the native nobody credential:
su -m nobody -c './g3_vfs_probe expect-success access-read /tmp/repo22-g3/mnt/testdir/file.txt'
su -m nobody -c './g3_vfs_probe expect-success access-exec /tmp/repo22-g3/mnt/testdir'
su -m nobody -c './g3_vfs_probe expect-success access-exec /tmp/repo22-g3/mnt/testdir/script.sh'
su -m nobody -c './g3_vfs_probe expect-success open-read /tmp/repo22-g3/mnt/testdir/file.txt'
## Expected Results
All four direct checks report success with errno 0. Record the nobody uid,
fixture modes, command output, and cleanup.