| Previous | Next |
| KERN_INSUFFICIENT_BUFFER_SIZE | MACH_SEND_INVALID_DATA |
KERN_DENIED
KERN_DENIED is the specific XNU kern_return_t for a request denied by security policy. It is more informative than a generic failure because the operation reached a policy gate; it still does not identify the exact policy, entitlement, authorization context, or rule that rejected the request.
Mach resources are commonly accessed through ports and port rights, but policy checks can also exist above the basic right model. Keep this result distinct from a VM protection failure and from an invalid port right: those conditions describe different layers and lead to different diagnostics.
Focused investigation
- Identify the service, Mach interface, and target object that performed the policy check.
- Collect relevant subsystem logs and the caller's signing or authorization context where applicable.
- Confirm the intended operation is permitted by the public API instead of attempting to bypass the decision.
- Preserve
KERN_DENIEDwhen mapping it to a higher-level error so policy failures remain distinguishable in telemetry.
References
Looking for a different code? Search another status or error code.