-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add cri-dockerd flavor to disallow-cri-sock-mount policy (#753)
* feat: add cri-dockerd flavor to disallow-cri-sock-mount Signed-off-by: Spencer Koch <[email protected]> * add tests Signed-off-by: Spencer Koch <[email protected]> * update artifacthub-pkg.yml with changes Signed-off-by: Spencer Koch <[email protected]> * just the policy file digest Signed-off-by: Spencer Koch <[email protected]> --------- Signed-off-by: Spencer Koch <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]>
- Loading branch information
1 parent
d9d7b7d
commit 67a73df
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
best-practices/disallow-cri-sock-mount/pod-cri-dockerd-sock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pod-with-cri-dockerd-sock-mount | ||
spec: | ||
containers: | ||
- name: myshell | ||
image: "ubuntu:18.04" | ||
command: | ||
- /bin/sleep | ||
- "300" | ||
volumes: | ||
- name: dockersock | ||
hostPath: | ||
path: /var/run/cri-dockerd.sock |