mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(aa): update parse definition to last changes.
This commit is contained in:
parent
163c5be61c
commit
cd03640c10
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue