mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-15 00:37:19 +01:00
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
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:
parent
fc85b9fc58
commit
f1182b27bb
1 changed files with 4 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue