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

@ -14,9 +14,9 @@ type PivotRoot struct {
func PivotRootFromLog(log map[string]string) ApparmorRule {
return &PivotRoot{
Qualifier: NewQualifierFromLog(log),
OldRoot: log["oldroot"],
NewRoot: log["root"],
TargetProfile: log["name"],
OldRoot: log["srcname"],
NewRoot: log["name"],
TargetProfile: "",
}
}