Authorize a kauth-style action on a vnode.
- macOS 10.4+
Vnode on which to authorize action.
Parent of "vp," can be NULL.
Action to authorize, e.g. KAUTH_VNODE_READ_DATA. See bsd/sys/kauth.h.
Context for which to authorize actions.
EACCESS if permission is denied. 0 if operation allowed. Various errors from lower layers.
Operations on dead vnodes are always allowed (though never do anything).