Function

SecACLRemove

Removes the specified ACL entry from the access instance that contains it.

Declaration

OSStatus SecACLRemove(SecACLRef aclRef);

Parameters

aclRef

An ACL entry to remove.

Return Value

Discussion

This method fails if you attempt to remove the owner entry because an access instance must have exactly one such ACL at all times. If you need to change ownership settings, modify the existing owner entry rather than replacing it. In particular, use the SecAccessCopyMatchingACLList method with the kSecACLAuthorizationChangeACL authorization to find the existing entry, and the SecACLSetContents method to change it as needed.

See Also

Access Control List Entries

SecACLCreateWithSimpleContents

Creates a new ACL entry with the given characteristics, and adds it to an access instance.

ACL Authorization Keys

The operations an access control list entry applies to.

SecKeychainPromptSelector

Bits that define when a keychain should require a passphrase.

SecACLRef

An opaque type that represents information about an ACL entry.

SecACLGetTypeID

Returns the unique identifier of the opaque type to which an ACL entry belongs.