25 lines
876 B
Markdown
25 lines
876 B
Markdown
# 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.
|