CFFileSecurityCopyAccessControlList(_:_:)
Copies the access control list associated with a CFFileSecurityRef object.
Declaration
func CFFileSecurityCopyAccessControlList(_ fileSec: CFFileSecurity!, _ accessControlList: UnsafeMutablePointer<acl_t?>!) -> BoolParameters
- fileSec:
The
CFFileSecurityRefobject. - 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.
See Also
Functions
CFAllocatorAllocateBytes(_:_:_:)CFAllocatorAllocateTyped(_:_:_:_:)CFAllocatorReallocateBytes(_:_:_:_:)CFAllocatorReallocateTyped(_:_:_:_:_:)CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)CFBundleIsArchitectureLoadable(_:)CFBundleIsExecutableLoadable(_:)CFBundleIsExecutableLoadableForURL(_:)CFCopyHomeDirectoryURL()CFDateFormatterCreateISO8601Formatter(_:_:)CFFileSecurityClearProperties(_:_:)CFFileSecurityCopyGroupUUID(_:_:)CFFileSecurityCopyOwnerUUID(_:_:)CFFileSecurityCreate(_:)