Files
erofs-freebsd-out-tree/tests/TC071-shared-security-xattr.md
T
2026-08-18 09:20:44 +02:00

26 lines
812 B
Markdown

# 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.