I've been looking into tar files that include ACLs.  Tar file entries that
have ACLs store them within a pax header, and there are two fields within
that header that I'm interested in:
- SCHILY.xattr.system.posix_acl_access
- SCHILY.xattr.system.posix_acl_default

My question is simple... in what format is the value of these fields?  I've
searched around and I can't find this documented anywhere.  What I'm
ultimately trying to do is convert that value into the same textual format
you get from 'getfacl' so that I can subsequently provide that to a
'setfacl' call.  I've started looking into tar's source code to try to
infer the format, but surely it is documented somewhere... right?

If anyone knows either the format of these fields or an existing way to
convert them from the format they are in within the tarfile's pax header
into the textual format of 'getfacl', please let me know.  I've searched
pretty hard for this and have come up dry.

Thanks!
Jacob McIntosh

Reply via email to