feat(aa): rename the main profile struct.

This commit is contained in:
Alexandre Pujol 2024-04-16 21:51:56 +01:00
parent 4b753210e7
commit 890275fb22
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
11 changed files with 287 additions and 274 deletions

View file

@ -36,7 +36,7 @@ func (d Exec) Apply(opt *Option, profileRaw string) string {
delete(opt.ArgMap, t)
}
profile := &aa.AppArmorProfile{}
profile := &aa.AppArmorProfileFile{}
p := profile.GetDefaultProfile()
for name := range opt.ArgMap {
profiletoTransition := util.MustReadFile(cfg.RootApparmord.Join(name))