crosvm: install both .policy and .bpf files
`crosvm --seccomp-log-failures` requires the .policy files. see: https://crosvm.dev/book/building_crosvm.html#known-issues
This commit is contained in:
parent
020c641a88
commit
b7731c3997
@ -52,13 +52,16 @@ rustPlatform.buildRustPackage rec {
|
||||
compile_seccomp_policy \
|
||||
--default-action trap $policy ''${policy%.policy}.bpf
|
||||
done
|
||||
|
||||
substituteInPlace seccomp/$arch/*.policy \
|
||||
--replace "@include $(pwd)/seccomp/$arch/" "@include $out/share/policy/"
|
||||
'';
|
||||
|
||||
buildFeatures = [ "default" "virgl_renderer" "virgl_renderer_next" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/policy/
|
||||
cp -v seccomp/$arch/*.bpf $out/share/policy/
|
||||
cp -v seccomp/$arch/*.{policy,bpf} $out/share/policy/
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.py;
|
||||
|
Loading…
Reference in New Issue
Block a user