feat(aa-log): ensure rule access is always present.

This commit is contained in:
Alexandre Pujol 2024-02-29 00:19:26 +00:00
parent 45a6e0bf21
commit e3daaf3d4c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 25 additions and 38 deletions

View file

@ -15,7 +15,7 @@ func FileFromLog(log map[string]string) ApparmorRule {
return &File{
Qualifier: NewQualifierFromLog(log),
Path: log["name"],
Access: maskToAccess[log["requested_mask"]],
Access: toAccess(log["requested_mask"]),
Target: log["target"],
}
}