This commit is contained in:
2026-08-18 09:20:44 +02:00
commit b826cd721a
522 changed files with 93730 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Test Case: access - Denied Operations
**Test ID**: TC058-access-denied
**Category**: VFS Integration
**Priority**: High
## Objective
Verify direct access checks distinguish permission denial from read-only
modification denial for a non-root credential.
## Procedure
Mount vfs/vfs-plain.erofs and run:
su -m nobody -c './g3_vfs_probe expect-error access-read /tmp/repo22-g3/mnt/testdir/rootonly.txt 13'
su -m nobody -c './g3_vfs_probe expect-error access-read /tmp/repo22-g3/mnt/testdir/writeonly.txt 13'
su -m nobody -c './g3_vfs_probe expect-error access-exec /tmp/repo22-g3/mnt/testdir/noexec.txt 13'
su -m nobody -c './g3_vfs_probe expect-error access-write /tmp/repo22-g3/mnt/testdir/file.txt 30'
## Expected Results
Mode-bit denials report EACCES (13); requested modification of the regular
file reports EROFS (30). Record exact helper output and cleanup.