Function

CFFileSecurityCopyAccessControlList(_:_:)

Copies the access control list associated with a CFFileSecurityRef object.

Declaration

func CFFileSecurityCopyAccessControlList(_ fileSec: CFFileSecurity!, _ accessControlList: UnsafeMutablePointer<acl_t?>!) -> Bool

Parameters

fileSec

The CFFileSecurityRef object.

accessControlList

A pointer to an acl_t object. The resulting ACL can be freed by calling acl_free(3) macOS Manual Page.

Return Value

Returns true if the ACL was successfully copied, or false if there is no ACL property associated with the CFFileSecurityRef object.

Discussion

You can manipulate the acl_t object using the acl calls defined in <sys/acl.h>. For more information, see the acl manual page.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software