---
title: "CFFileSecurityCopyAccessControlList(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cffilesecuritycopyaccesscontrollist(_:_:)"
---

# CFFileSecurityCopyAccessControlList(_:_:)

Copies the access control list associated with a CFFileSecurityRef object.

## Declaration

```swift
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

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

## Discussion

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(_:_:_:)](corefoundation/cfallocatorallocatebytes(_:_:_:).md)
- [CFAllocatorAllocateTyped(_:_:_:_:)](corefoundation/cfallocatorallocatetyped(_:_:_:_:).md)
- [CFAllocatorReallocateBytes(_:_:_:_:)](corefoundation/cfallocatorreallocatebytes(_:_:_:_:).md)
- [CFAllocatorReallocateTyped(_:_:_:_:_:)](corefoundation/cfallocatorreallocatetyped(_:_:_:_:_:).md)
- [CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)](corefoundation/cfattributedstringgetbidilevelsandresolveddirections(_:_:_:_:_:).md)
- [CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)](corefoundation/cfbundlecopylocalizedstringforlocalizations(_:_:_:_:_:).md)
- [CFBundleIsArchitectureLoadable(_:)](corefoundation/cfbundleisarchitectureloadable(_:).md)
- [CFBundleIsExecutableLoadable(_:)](corefoundation/cfbundleisexecutableloadable(_:).md)
- [CFBundleIsExecutableLoadableForURL(_:)](corefoundation/cfbundleisexecutableloadableforurl(_:).md)
- [CFCopyHomeDirectoryURL()](corefoundation/cfcopyhomedirectoryurl().md)
- [CFDateFormatterCreateISO8601Formatter(_:_:)](corefoundation/cfdateformattercreateiso8601formatter(_:_:).md)
- [CFFileSecurityClearProperties(_:_:)](corefoundation/cffilesecurityclearproperties(_:_:).md)
- [CFFileSecurityCopyGroupUUID(_:_:)](corefoundation/cffilesecuritycopygroupuuid(_:_:).md)
- [CFFileSecurityCopyOwnerUUID(_:_:)](corefoundation/cffilesecuritycopyowneruuid(_:_:).md)
- [CFFileSecurityCreate(_:)](corefoundation/cffilesecuritycreate(_:).md)
