Function

SecACLUpdateAuthorizations

Sets the authorization tags for a given ACL.

Declaration

OSStatus SecACLUpdateAuthorizations(SecACLRef acl, CFArrayRef authorizations);

Parameters

acl

An ACL object that identifies the access control list entry for which you wish to set authorization tags.

authorizations

An array of authorization tags. See CSSM_ACL_AUTHORIZATION_TAG for details.

Return Value

Discussion

An ACL entry includes a list of trusted apps, the name of the keychain item as it appears in user prompts, the prompt selector flag, and a list of one or more operations to which this ACL entry applies. Use this method to set a list of operations for an ACL entry, or set the kSecACLAuthorizationAny tag to allow all operations. Use the SecACLSetContents method to set the other information.

Because an ACL entry is always associated with an access instance, when you modify an entry, you are modifying the access instance as well.

See Also

Access Control List Configuration

SecACLCopyContents

Returns the application list, description, and prompt selector for a given ACL entry.

SecACLSetContents

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

SecACLCopyAuthorizations

Retrieves the authorization tags of a given ACL entry.