mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(aa): add support for audit log.
This commit is contained in:
parent
e93c1bf4d8
commit
4dfc1388e3
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue