build: simplify profile struct.
This commit is contained in:
parent
714971911a
commit
6ea2df19eb
3 changed files with 10 additions and 19 deletions
|
|
@ -45,8 +45,8 @@ func BuildComplain(profile string) string {
|
|||
|
||||
// Bypass userspace tools restriction
|
||||
func BuildUserspace(profile string) string {
|
||||
p := aa.NewAppArmorProfile(profile)
|
||||
p.ParseVariables()
|
||||
p := aa.NewAppArmorProfile()
|
||||
p.ParseVariables(profile)
|
||||
p.ResolveAttachments()
|
||||
att := p.NestAttachments()
|
||||
matches := regAttachments.FindAllString(profile, -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue