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.