qemu: apply PaX markings
commitdae5f53d257817a33d6f59a2abf1f75634af1ab0
authorJoachim Fasting <joachifm@fastmail.fm>
dateFri 8 Apr 2016, 01:45 (11 years ago)
parent09cf92c
pkgs/applications/virtualization/qemu/default.nix+7
@@ -60,6 +60,13 @@ stdenv.mkDerivation rec {
6060 ++ optional stdenv.isDarwin "--enable-cocoa"
6161 ++ optional stdenv.isLinux "--enable-linux-aio";
6262
63+ postFixup =
64+ ''
65+ for exe in $out/bin/qemu-system-* ; do
66+ paxmark m $exe
67+ done
68+ '';
69+
6370 postInstall =
6471 ''
6572 # Add a ‘qemu-kvm’ wrapper for compatibility/convenience.