feat(aa-log): add support change_profile & pivot_rule

This commit is contained in:
Alexandre Pujol 2023-11-27 19:21:43 +00:00
parent 52278490ab
commit d4bc07895a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
5 changed files with 105 additions and 7 deletions

View file

@ -5,6 +5,7 @@
package aa
type ChangeProfile struct {
Qualifier
ExecMode string
Exec string
ProfileName string
@ -12,9 +13,10 @@ type ChangeProfile struct {
func ChangeProfileFromLog(log map[string]string) ApparmorRule {
return &ChangeProfile{
Qualifier: NewQualifierFromLog(log),
ExecMode: log["mode"],
Exec: log["exec"],
ProfileName: log["name"],
ProfileName: log["target"],
}
}