Is there any way to query ACLs on Linux programmatically? Given a file or directory, I have to check if an ACL exists for it and then find out the level of access granted to different users. All I could find on the net were the getfacl and setfacl command line utilities which are of no use to me. Also, what are the best practices I need to follow when working with ACLs?
Is there any way to query ACLs on Linux programmatically? Given a file or
Share
They are in the
acl.hheader. There are links out to each of the functions from here.A few sample functions:
The functions are in libacl.