From 6d2147582e4cc4eb7fe804b53b219df3432b4ffb Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 12 Apr 2025 22:44:56 +0200 Subject: [PATCH] build: add mappings to the list of directories without profile files. --- pkg/prebuild/builder/userspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/prebuild/builder/userspace.go b/pkg/prebuild/builder/userspace.go index 20498bb4f..618b67c17 100644 --- a/pkg/prebuild/builder/userspace.go +++ b/pkg/prebuild/builder/userspace.go @@ -33,7 +33,7 @@ func init() { } func (b Userspace) Apply(opt *Option, profile string) (string, error) { - for _, dir := range []string{"abstractions", "tunables", "local"} { + for _, dir := range []string{"abstractions", "tunables", "local", "mappings"} { if ok, _ := opt.File.IsInsideDir(prebuild.RootApparmord.Join(dir)); ok { return profile, nil }