feat(aa): improve rule creation from log.

This commit is contained in:
Alexandre Pujol 2023-09-29 20:07:29 +01:00
parent 13de4182c8
commit c7485326e8
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
15 changed files with 62 additions and 57 deletions

View file

@ -11,9 +11,9 @@ type Mqueue struct {
Label string
}
func MqueueFromLog(log map[string]string, noNewPrivs, fileInherit bool) ApparmorRule {
func MqueueFromLog(log map[string]string) ApparmorRule {
return &Mqueue{
Qualifier: NewQualifier(false, noNewPrivs, fileInherit),
Qualifier: NewQualifierFromLog(log),
Access: maskToAccess[log["requested_mask"]],
Type: log["type"],
Label: log["label"],