812 B
812 B
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
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.