Re: C API for ACLs

2022-02-05 Thread raf
On Sat, Feb 05, 2022 at 11:05:11PM -0500, Andrew Udvare wrote: > > On 2022-02-05, at 22:29, raf wrote: > > > > Hi, > > > > Does anyone know how to get at macOS's ACLs from C? > > I just need to access them in text form. I'm using > > the "POSIX" ACL API, and it compiles and runs, but > > it

Re: C API for ACLs

2022-02-05 Thread Andrew Udvare
> On 2022-02-05, at 22:29, raf wrote: > > Hi, > > Does anyone know how to get at macOS's ACLs from C? > I just need to access them in text form. I'm using > the "POSIX" ACL API, and it compiles and runs, but > it doesn't find anything. The ACL entries that I can > create with chmod +a, and

Re: C API for ACLs

2022-02-05 Thread Richard L. Hamilton
Use the source, Luke. How "ls" does it: https://github.com/apple-oss-distributions/file_cmds/tree/file_cmds-321.100.11/ls Looks like the presence of an ACL and getting a handle for it is done in ls.c, and actually retrieving and printing all the entries (ls.c retrieves the 1st entry just to

C API for ACLs

2022-02-05 Thread raf
Hi, Does anyone know how to get at macOS's ACLs from C? I just need to access them in text form. I'm using the "POSIX" ACL API, and it compiles and runs, but it doesn't find anything. The ACL entries that I can create with chmod +a, and view with ls -e, don't show up because they're not "POSIX"