Function

SecAccessCopyOwnerAndACL

Retrieves the owner and the ACL entries of a given access instance.

Declaration

OSStatus SecAccessCopyOwnerAndACL(SecAccessRef accessRef, uid_t *userId, gid_t *groupId, SecAccessOwnerType *ownerType, CFArrayRef  _Nullable *aclList);

Parameters

accessRef

An access instance from which to retrieve the owner and ACL entries.

userId

On return, the user ID that owns the access instance.

groupId

On return, the group ID that owns the access instance.

ownerType

On return, flags that indicate whether the specified user ID or group ID owns the resulting ACL entries. See SecAccessOwnerType for details.

aclList

On return, an array of SecACLRef instances associated with the access instance.

Return Value

See Also

Access Query

SecAccessCopyACLList

Retrieves all the ACL entries of a given access instance.

SecAccessCopyMatchingACLList

Retrieves selected ACL entries from a given access instance.