mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(aa-log): ensure unix rule are not confused with network unix rule.
Both are technically the same, we simply prioritize `unix` to `network unix`.
This commit is contained in:
parent
e3daaf3d4c
commit
e616b9b3fc
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,11 @@ func (p *AppArmorProfile) AddRule(log map[string]string) {
|
|||
case "cap":
|
||||
p.Rules = append(p.Rules, CapabilityFromLog(log))
|
||||
case "net":
|
||||
if log["family"] == "unix" {
|
||||
p.Rules = append(p.Rules, UnixFromLog(log))
|
||||
} else {
|
||||
p.Rules = append(p.Rules, NetworkFromLog(log))
|
||||
}
|
||||
case "mount":
|
||||
switch log["operation"] {
|
||||
case "mount":
|
||||
|
|
Loading…
Reference in a new issue