Skip to content

Commit

Permalink
build: do not resolve files in local/
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Jan 12, 2025
1 parent fc85b9f commit f1182b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/prebuild/builder/userspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ func init() {
}

func (b Userspace) Apply(opt *Option, profile string) (string, error) {
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join("abstractions")); ok {
return profile, nil
}
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join("tunables")); ok {
return profile, nil
for _, dir := range []string{"abstractions", "tunables", "local"} {
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join(dir)); ok {
return profile, nil
}
}

f := aa.DefaultTunables()
Expand Down

0 comments on commit f1182b2

Please sign in to comment.