Extending text-format ACLs
Tim Kientzle
kientzle at freebsd.org
Wed Apr 14 01:56:13 GMT 2004
In doing further testing on my 'tar' implementation,
I'm wondering if there's a way to improve the
efficiency of acl_get_file.
In particular, I've found that acl_get_file is
the biggest malloc consumer I have. I'm calling
acl_get_file twice for every file (for access and
default ACLs), and each call invokes acl_init to
create the ACL structure (which almost always
gets immediately freed when I discover that it has
only the standard entries).
I know I can skip the default ACL for non-directories,
which would cut out a lot of the heap pressure, but
I would like to find a way to avoid calling
acl_get_file unless I know I need to.
Ideally, I'd like some piece of data in struct stat
that I can use to tell whether or not there is
extended ACL data for this file. (Maybe a read-only
bit in st_flags that indicates "extended ACL exists"?)
Any thoughts?
Tim Kientzle
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message
More information about the posix1e
mailing list