feat(aa-log): allow profile selection for dbus rules.
This commit is contained in:
parent
f6b6e99cde
commit
671dcca38d
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ func NewApparmorLogs(file io.Reader, profile string) AppArmorLogs {
|
||||||
log := ""
|
log := ""
|
||||||
exp := "apparmor=(\"DENIED\"|\"ALLOWED\"|\"AUDIT\")"
|
exp := "apparmor=(\"DENIED\"|\"ALLOWED\"|\"AUDIT\")"
|
||||||
if profile != "" {
|
if profile != "" {
|
||||||
exp = fmt.Sprintf(exp+".* profile=\"%s.*\"", profile)
|
exp = fmt.Sprintf(exp+".* (profile=\"%s.*\"|label=\"%s.*\")", profile, profile)
|
||||||
}
|
}
|
||||||
isAppArmorLog := regexp.MustCompile(exp)
|
isAppArmorLog := regexp.MustCompile(exp)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue