Cygwin API to atomically create a new file with an ACL?

Thomas Wolff towo@towo.net
Sat Nov 15 14:43:11 GMT 2025


Am 15.11.2025 um 13:58 schrieb Aurélien Couderc via Cygwin:
> Does Cygwin have an API to atomically create a new file with an ACL?
>
> Aurélien
I don't think there's such an API in POSIX. Instead it's the purpose of 
the directory default ACL entries to support this.
While the manual pages of setfacl/getfacl are lousy, a fairly lucid 
description is in 7.6. POSIX Access Control Lists | Administration Guide 
| Red Hat Gluster Storage | 3 | Red Hat Documentation 
<https://docs.redhat.com/en/documentation/red_hat_gluster_storage/3/html/administration_guide/sect-posix_access_control_lists>.
Thomas


More information about the Cygwin mailing list