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: Shared security xattr
**Test ID**: TC071-shared-security-xattr
**Fixture**: `basic.erofs`, `/security-shared-a`, `/security-shared-b`
## Objective
Verify a shared Linux `security.*` entry mapped to FreeBSD namespace `system`.
The transformer must record `e_name_index: 1 -> 6`.
## Manual steps
```sh
lsextattr system /mnt/repo22-g4/security-shared-a
getextattr -qq -x system security.selinux /mnt/repo22-g4/security-shared-a
getextattr -qq -x system security.selinux /mnt/repo22-g4/security-shared-b
truss -o /tmp/tc071.truss getextattr -qq system security.missing \
/mnt/repo22-g4/security-shared-a
grep extattr_get_file /tmp/tc071.truss
```
## Expected results
Both values are exactly `system_u:object_r:shared_repo22_t:s0\0`; the missing
name returns `ENOATTR` (87). Unmount and detach.