mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(aa-log): allow profile selection for dbus rules.
This commit is contained in:
parent
f6b6e99cde
commit
671dcca38d
@ -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 New Issue
Block a user