Function

SecAccessCopySelectedACLList

Retrieves selected access control lists from a given access object.

Declaration

OSStatus SecAccessCopySelectedACLList(SecAccessRef accessRef, CSSM_ACL_AUTHORIZATION_TAG action, CFArrayRef  _Nullable *aclList);

Parameters

accessRef

The access object from which to retrieve the information.

action

An access control list authorization tag; the function returns only those access control list entries that apply to the operation indicated by this tag.

aclList

On return, a pointer to the selected access control lists. Call the CFRelease function to release this object when you are finished using it.

Return Value

Discussion

An access object can have any number of access control list (ACL) entries for specific operations or sets of operations. To retrieve all the ACL entries for an access object, use the SecAccessCopyACLList function.

Special Considerations

This function is deprecated in macOS 10.7 and later; use SecAccessCopyMatchingACLList instead.

See Also

Legacy Access Control Operations

SecACLCreateFromSimpleContents

Creates a new access control list entry from the application list, description, and prompt selector provided and adds it to an item’s access object.

Deprecated
SecACLCopySimpleContents

Returns the application list, description, and CSSM prompt selector for a given access control list entry.

Deprecated
SecACLSetSimpleContents

Sets the application list, description, and prompt selector for a given access control list entry.

Deprecated
SecACLGetAuthorizations

Retrieves the CSSM authorization tags of a given access control list entry.

Deprecated
SecACLSetAuthorizations

Sets the CSSM authorization tags for a given access control list entry.

Deprecated
SecAccessCreateFromOwnerAndACL

Creates a new access object using the owner and access control list you provide.

Deprecated
SecAccessGetOwnerAndACL

Retrieves the owner and the access control list of a given access object.

Deprecated