Skip to content

Commit

Permalink
Added another chec
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesouza committed Nov 12, 2024
1 parent f701195 commit e22a93f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
25 changes: 1 addition & 24 deletions pkg/config/checks/procMount.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
successMessage: The default /proc masks are set up to reduce attack surface, and should be required
failureMessage: Proc mount must not be changed from the default
category: Security
target: PodSpec
target: Container
schema:
'$schema': http://json-schema.org/draft-07/schema
type: object
Expand All @@ -17,26 +17,3 @@ schema:
procMount:
type: string
const: Default
initContainers:
type: array
items:
type: object
properties:
securityContext:
type: object
properties:
procMount:
type: string
const: Default
ephemeralContainers:
type: array
items:
type: object
properties:
securityContext:
type: object
properties:
procMount:
type: string
const: Default

4 changes: 4 additions & 0 deletions test/webhook_cases/passing_test.daemonset.v1beta2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ spec:
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers

0 comments on commit e22a93f

Please sign in to comment.