build: add mappings to the list of directories without profile files.

This commit is contained in:
Alexandre Pujol 2025-04-12 22:44:56 +02:00 committed by Alex
parent 5775721e55
commit 6d2147582e

View file

@ -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
}