Function

AuthorizationRightRemove

Removes a right from the policy database.

Declaration

OSStatus AuthorizationRightRemove(AuthorizationRef authRef, const char *rightName);

Parameters

authRef

A valid authorization reference used to authorize modifications.

rightName

An ASCII character string representing the right name. This function does not accept wildcard right names.

Return Value

Discussion

The right you remove must be an explicit right with no wildcards. Wildcard rights are for use by system administrators for site configuration.

See Also

The Policy Database

AuthorizationRightGet

Retrieves a right definition as a dictionary.

AuthorizationRightSet

Creates or updates a right entry in the policy database.

Policy Database Constants

Use these constants to set rights and rules in the policy database.