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
+25
View File
@@ -0,0 +1,25 @@
# 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.