Skip to content

Commit

Permalink
Merge pull request #1252 from daemon1024/fix-bpflsm-dir-rules
Browse files Browse the repository at this point in the history
fix(enforcer): correct rule handling for matchDirectories
  • Loading branch information
achrefbensaad committed Jun 2, 2023
2 parents 3e918bd + f874e72 commit d83d300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KubeArmor/enforcer/bpflsm/rulesHandling.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func dirtoMap(idx int, p, src string, m map[InnerKey][2]uint8, val [2]uint8) {
}
if oldval, ok := m[key]; ok {
if oldval[idx]&DIR != 0 {
val[idx] = val[idx] | DIR
val[idx] = oldval[idx] | HINT
}
}
m[key] = val
Expand Down

0 comments on commit d83d300

Please sign in to comment.