test code v1
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user