Skip to content

Commit

Permalink
Update pod-security-cel/restricted/disallow-privilege-escalation/disa…
Browse files Browse the repository at this point in the history
…llow-privilege-escalation.yaml

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Oct 7, 2024
1 parent 07bcb85 commit 10828ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
expressions:
- expression: >-
variables.allContainers.all(container,
container.?securityContext.?allowPrivilegeEscalation.orValue(true) == false)
container.?securityContext.allowPrivilegeEscalation.orValue(true) == false)
message: >-
Privilege escalation is disallowed.
All containers must set the securityContext.allowPrivilegeEscalation field to `false`.

0 comments on commit 10828ac

Please sign in to comment.