AuthorizationRightGet(_:_:)
Retrieves a right definition as a dictionary.
Declaration
func AuthorizationRightGet(_ rightName: UnsafePointer<CChar>, _ rightDefinition: UnsafeMutablePointer<CFDictionary?>?) -> OSStatusParameters
- 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
nilchecks if the right is defined. You should release the memory used by the returned dictionary.
Return Value
A result code. See Authorization Services Result Codes.
Discussion
You do not need an authorization reference to use this function because the policy database is world readable.