mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(aa): update parse definition to last changes.
This commit is contained in:
parent
163c5be61c
commit
cd03640c10
@ -153,7 +153,7 @@ func (f *AppArmorProfileFile) resolveInclude(include *Include) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := iFile.Parse(raw); err != nil {
|
||||
if _, err := iFile.Parse(raw); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ func (b Userspace) Apply(opt *Option, profile string) (string, error) {
|
||||
}
|
||||
|
||||
f := aa.DefaultTunables()
|
||||
if err := f.Parse(profile); err != nil {
|
||||
if _, err := f.Parse(profile); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if err := f.Resolve(); err != nil {
|
||||
|
@ -42,7 +42,7 @@ func (d Exec) Apply(opt *Option, profileRaw string) (string, error) {
|
||||
for name := range opt.ArgMap {
|
||||
profiletoTransition := util.MustReadFile(cfg.RootApparmord.Join(name))
|
||||
dstProfile := aa.DefaultTunables()
|
||||
if err := dstProfile.Parse(profiletoTransition); err != nil {
|
||||
if _, err := dstProfile.Parse(profiletoTransition); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if err := dstProfile.Resolve(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user