mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
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 := ""
|
||||
exp := "apparmor=(\"DENIED\"|\"ALLOWED\"|\"AUDIT\")"
|
||||
if profile != "" {
|
||||
exp = fmt.Sprintf(exp+".* profile=\"%s.*\"", profile)
|
||||
exp = fmt.Sprintf(exp+".* (profile=\"%s.*\"|label=\"%s.*\")", profile, profile)
|
||||
}
|
||||
isAppArmorLog := regexp.MustCompile(exp)
|
||||
|
||||
|
|
Loading…
Reference in a new issue