Function

AuthorizationRightGet

Retrieves a right definition as a dictionary.

Declaration

OSStatus AuthorizationRightGet(const char *rightName, CFDictionaryRef  _Nullable *rightDefinition);

Parameters

rightName

An ASCII character string representing the right name. Wildcard right names are valid.

rightDefinition

A reference to a dictionary. On return, this points to a dictionary of keys that define the right. Passing NULL checks if the right is defined. You should release the memory used by the returned dictionary.

Return Value

Discussion

You do not need an authorization reference to use this function because the policy database is world readable.

See Also

The Policy Database

AuthorizationRightSet

Creates or updates a right entry in the policy database.

AuthorizationRightRemove

Removes a right from the policy database.

Policy Database Constants

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