feat(aa-log): add support change_profile & pivot_rule
This commit is contained in:
parent
52278490ab
commit
d4bc07895a
5 changed files with 105 additions and 7 deletions
|
|
@ -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"],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue