Datasets:
Download source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel from Vinyeh/AutoOntologyBench: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel
- Command line
-
hf download hf://datasets/Vinyeh/AutoOntologyBench/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel
-
curl -L -o src.cel https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel
579 Bytes
| variables: | |
| - name: sharingHostIPC | |
| expression: | | |
| has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostIPC : false | |
| - name: sharingHostPID | |
| expression: | | |
| has(variables.anyObject.spec.hostPID) ? variables.anyObject.spec.hostPID : false | |
| - name: sharingNamespace | |
| expression: | | |
| variables.sharingHostIPC || variables.sharingHostPID | |
| validations: | |
| - expression: '(has(request.operation) && request.operation == "UPDATE") || !variables.sharingNamespace' | |
| messageExpression: '"Sharing the host namespace is not allowed: " + variables.anyObject.metadata.name' |