Skip to content

Commit

Permalink
Merge pull request #221 from kranurag7/main
Browse files Browse the repository at this point in the history
add FULL enforcement if active LSM is bpf
  • Loading branch information
daemon1024 authored Dec 11, 2022
2 parents 10a711c + f8216f2 commit fc5e8f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion probe/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ func PrintProbeResult(c *k8s.Client, o Options) error {

func checkLsmSupport(supportedLSM string) {
fmt.Printf("\t Enforcement:")
if strings.Contains(supportedLSM, "selinux") {
if strings.Contains(supportedLSM, "bpf") {
color.Green(" Full (Supported LSMs: " + supportedLSM + ")")
} else if strings.Contains(supportedLSM, "selinux") {
color.Yellow(" Partial (Supported LSMs: " + supportedLSM + ") \n\t To have full enforcement support, apparmor must be supported")
} else if strings.Contains(supportedLSM, "apparmor") || strings.Contains(supportedLSM, "bpf") {
color.Green(" Full (Supported LSMs: " + supportedLSM + ")")
Expand Down

0 comments on commit fc5e8f1

Please sign in to comment.