Files
erofs-freebsd-out-tree/tests/TC138-acl-linux-order-and-empty-header.md
T
2026-08-13 10:44:59 +02:00

903 B

Test Case: Linux ACL order and empty header

Test ID: TC138-acl-linux-order-and-empty-header Fixture: basic.erofs

Objective

Accept Linux ACL tag phases without sorting named IDs, treat a version-only header as mode fallback, and reject duplicate IDs, bad phase, and bad perms. The manifest must record rebuilt xattr bodies and i_xattr_icount fields.

Manual steps

getfacl -n /mnt/repo22-g4/acl-unordered
getfacl -n /mnt/repo22-g4/acl-header
truss -o /tmp/tc138-duplicate.truss getfacl -n \
  /mnt/repo22-g4/acl-duplicate
truss -o /tmp/tc138-phase.truss getfacl -n /mnt/repo22-g4/acl-phase
truss -o /tmp/tc138-perm.truss getfacl -n /mnt/repo22-g4/acl-perm
grep __acl_get_file /tmp/tc138-*.truss

Expected results

The first ACL lists user 3002 before 2002. Header-only output is mode-derived rw-/r--/r--. All three malformed ACLs return EINTEGRITY (97). Clean up.