mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(aa): add support for audit log.
This commit is contained in:
parent
e93c1bf4d8
commit
4dfc1388e3
@ -25,6 +25,10 @@ func NewQualifierFromLog(log map[string]string) Qualifier {
|
||||
owner = true
|
||||
}
|
||||
|
||||
audit := false
|
||||
if log["apparmor"] == "AUDIT" {
|
||||
audit = true
|
||||
}
|
||||
fileInherit := false
|
||||
if log["operation"] == "file_inherit" {
|
||||
fileInherit = true
|
||||
@ -34,7 +38,7 @@ func NewQualifierFromLog(log map[string]string) Qualifier {
|
||||
noNewPrivs = true
|
||||
}
|
||||
return Qualifier{
|
||||
Audit: false,
|
||||
Audit: audit,
|
||||
AccessType: "",
|
||||
Owner: owner,
|
||||
NoNewPrivs: noNewPrivs,
|
||||
|
Loading…
Reference in New Issue
Block a user