apparmor-profiles: use structuredAttrs instead of passAsFile

This commit is contained in:
Stefan Frijters
2026-03-09 13:40:30 +01:00
parent 08a8774638
commit d2de2e3598

View File

@@ -36,11 +36,11 @@
${bashInteractive}/bin/sh = icnu
${bashInteractive}/bin/bash = icnu
'';
passAsFile = [ "header" ];
__structuredAttrs = true;
}
''
mkdir $out
cp $headerPath $out/logprof.conf
printf "%s" "$header" > $out/logprof.conf
ln -s ${libapparmor.src}/utils/severity.db $out/severity.db
sed '1,/\[qualifiers\]/d' ${libapparmor.src}/utils/logprof.conf >> $out/logprof.conf
''