Skip to content

Commit

Permalink
Merge pull request kubearmor#644 from seswarrajan/main
Browse files Browse the repository at this point in the history
Segfault on policy handling
  • Loading branch information
nyrahul authored Mar 10, 2022
2 parents 0a98271 + 61756fd commit c0aedf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KubeArmor/enforcer/appArmorProfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ func (ae *AppArmorEnforcer) ResolvedProcessWhiteListConflicts(processWhiteList *

for index, line := range *processWhiteList {
for source := range fromSources {
if strings.Contains(line, source) {
if strings.Split(line, " ")[0] == source {
*fusionProcessWhiteList = append(*fusionProcessWhiteList, source)

// remove line from WhiteList
prunedProcessWhiteList = kl.RemoveStringElement(prunedProcessWhiteList, index-numOfRemovedElements)
numOfRemovedElements = numOfRemovedElements + 1
break
}
}
}
Expand Down

0 comments on commit c0aedf2

Please sign in to comment.