feat(aa): make preamble rule classic aa rules.

This commit is contained in:
Alexandre Pujol 2024-05-04 23:25:55 +01:00
parent 068373405f
commit a5c4eab0cf
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
8 changed files with 81 additions and 74 deletions

View file

@ -19,19 +19,10 @@ type AppArmorProfileFiles map[string]*AppArmorProfileFile
// - Some rules are not supported yet (subprofile, hat...)
// - The structure is simplified as it only aims at writing profile, not parsing it.
type AppArmorProfileFile struct {
Preamble
Preamble Rules
Profiles []*Profile
}
// Preamble section of a profile file,
type Preamble struct {
Abi []*Abi
Includes []*Include
Aliases []*Alias
Variables []*Variable
Comments []*RuleBase
}
func NewAppArmorProfile() *AppArmorProfileFile {
return &AppArmorProfileFile{}
}