Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Error when AllowPrivilegeEscalation is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorlis committed Nov 6, 2017
1 parent 8381c99 commit 742f2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/allowPrivilegeEscalation.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func checkAllowPrivilegeEscalation(container Container, result *Result) {
return
}
if container.SecurityContext.AllowPrivilegeEscalation == nil {
occ := Occurrence{id: ErrorAllowPrivilegeEscalationNIL, kind: Warn, message: "AllowPrivilegeEscalation defaults to false, which is okay"}
occ := Occurrence{id: ErrorAllowPrivilegeEscalationNIL, kind: Error, message: "AllowPrivilegeEscalation not set which allows privilege escalation, please set to false"}
result.Occurrences = append(result.Occurrences, occ)
return
}
Expand Down

0 comments on commit 742f2aa

Please sign in to comment.