build: do not resolve files in local/
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) {
|
func (b Userspace) Apply(opt *Option, profile string) (string, error) {
|
||||||
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join("abstractions")); ok {
|
for _, dir := range []string{"abstractions", "tunables", "local"} {
|
||||||
return profile, nil
|
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join(dir)); ok {
|
||||||
}
|
return profile, nil
|
||||||
if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join("tunables")); ok {
|
}
|
||||||
return profile, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
f := aa.DefaultTunables()
|
f := aa.DefaultTunables()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue