Given a vnode_attr structure, determine what kauth-style actions must be authorized in order to set those attributes.
- macOS 10.4+
The vnode on which to authorize action.
Pointer to vnode_attr struct containing desired attributes to set and their values.
Destination for set of actions to authorize
Context for which to authorize actions.
0 (and a result in "actionp" for success. Otherwise, an error code.
vnode_authorize requires kauth-style actions; if we want to set a vnode_attr structure on a vnode, we need to translate the set of attributes to a set of kauth-style actions. This routine will return errors for certain obviously disallowed, or incoherent, actions.