build: do not resolve files in local/
Some checks failed
Ubuntu / check (push) Has been cancelled
Ubuntu / build (default, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (default, ubuntu-24.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Has been cancelled
Ubuntu / tests (push) Has been cancelled

This commit is contained in:
Alexandre Pujol 2025-01-12 20:30:52 +01:00
parent fc85b9fc58
commit f1182b27bb
Failed to generate hash of commit

View file

@ -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()