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

@ -23,7 +23,7 @@ func MqueueFromLog(log map[string]string) ApparmorRule {
}
return &Mqueue{
Qualifier: NewQualifierFromLog(log),
Access: maskToAccess[log["requested"]],
Access: toAccess(log["requested"]),
Type: mqueueType,
Label: log["label"],
Name: log["name"],