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

@ -13,7 +13,7 @@ type Ptrace struct {
func PtraceFromLog(log map[string]string) ApparmorRule {
return &Ptrace{
Qualifier: NewQualifierFromLog(log),
Access: maskToAccess[log["requested_mask"]],
Access: toAccess(log["requested_mask"]),
Peer: log["peer"],
}
}