---
title: "es_exec_entitlements(_:)"
framework: Endpoint Security
role: symbol
role_heading: Function
platforms: [macOS 27.0+]
path: "endpointsecurity/es_exec_entitlements(_:)"
---

# es_exec_entitlements(_:)

## Declaration

```swift
func es_exec_entitlements(_ exec: UnsafePointer<es_event_exec_t>) -> xpc_object_t?
```

## Parameters

- `exec`: The es_event_exec_t being inspected

## Return Value

Return Value The XPC dictionary containing all entitlements, or NULL if there are no entitlements.

## Discussion

Discussion Get the dictionary of entitlements associated with a message containing an es_event_exec_t note: The caller is responsible for releasing the returned object.
