---
title: set_security_token
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1515964-set_security_token
---

# set_security_token

## Declaration

```occ
int set_security_token(struct proc *p, struct ucred *cred);
```
