<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_security_config_get",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@F@os_security_config_get"
  },
  "title" : "os_security_config_get"
}
-->

# os_security_config_get

```
extern os_security_config_t os_security_config_get();
```

## Return Value

An os_security_config_t value representing the active security flags.
This function is not expected to fail for the current process.

## Discussion

\abstract Retrieves the security configuration bitmask for the current process.
\discussion This function inspects the value passed by the kernel to the current process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)