---
title: max_protection
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_event_mmap_t/max_protection
---

# max_protection

The maximum value you can use for protection flags.

## Declaration

```swift
var max_protection: Int32
```

## Discussion

Discussion This value uses the protection flags defined by mmap(2), such as PROT_READ and PROT_WRITE. You can use the definitions for these flags found in sys/mman.h in the macOS SDK inside of the Xcode app bundle.

## See Also

### Inspecting Event Properties

- [source](endpointsecurity/es_event_mmap_t/source.md)
- [file_pos](endpointsecurity/es_event_mmap_t/file_pos.md)
- [flags](endpointsecurity/es_event_mmap_t/flags.md)
- [protection](endpointsecurity/es_event_mmap_t/protection.md)
- [reserved](endpointsecurity/es_event_mmap_t/reserved.md)
