26 lines
694 B
Markdown
26 lines
694 B
Markdown
# Test Case: chown Rejection
|
|
|
|
**Test ID**: TC062-setattr-chown-reject
|
|
**Category**: Read-Only Enforcement
|
|
**Priority**: Critical
|
|
|
|
## Objective
|
|
|
|
Verify a privileged direct chown request returns EROFS and leaves ownership
|
|
unchanged.
|
|
|
|
## Procedure
|
|
|
|
Mount vfs/vfs-plain.erofs as root and run:
|
|
|
|
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt > TC062-before.txt
|
|
./g3_vfs_probe expect-error chown \
|
|
/tmp/repo22-g3/mnt/testdir/file.txt 30
|
|
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt > TC062-after.txt
|
|
cmp TC062-before.txt TC062-after.txt
|
|
|
|
## Expected Results
|
|
|
|
chown to uid/gid 65534 reports errno 30 and metadata remains unchanged. Record
|
|
output and cleanup.
|