Datasets:
File size: 627 Bytes
df0899b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
id: seccomp
title: seccomp
---
# seccomp
### Usage
```shell
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/seccomp/samples/mutation.yaml
```
## Mutation Examples
```yaml
apiVersion: mutations.gatekeeper.sh/v1
kind: Assign
metadata:
name: k8spspseccomp
spec:
applyTo:
- groups: [""]
kinds: ["Pod"]
versions: ["v1"]
location: spec.securityContext.seccompProfile
parameters:
pathTests:
- subPath: spec.securityContext.seccompProfile
condition: MustNotExist
assign:
value:
type: RuntimeDefault
``` |