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

@ -14,7 +14,7 @@ type Signal struct {
func SignalFromLog(log map[string]string) ApparmorRule {
return &Signal{
Qualifier: NewQualifierFromLog(log),
Access: maskToAccess[log["requested_mask"]],
Access: toAccess(log["requested_mask"]),
Set: log["signal"],
Peer: log["peer"],
}