git.iko.soy/typeable/nixpkgs
on master help sign in
qemu_test: don't apply patch for CVE-2016-9602

Both patches are conflicting. Keeping the vulnerability unpatched in qemu binaries used for nixos test is tolerable.

commit3a4e2376e444fd7664102af00a34c65b47e271ec authorFranz Pletz <fpletz@fnordicwalking.de> dateSat 11 Mar 2017, 13:43 (10 years ago) parente25f8f2
1 file changed+7−7
pkgs/applications/virtualization/qemu/default.nix+7−7
pkgs/applications/virtualization/qemu/default.nix+7−7
@@ -77,12 +77,6 @@ stdenv.mkDerivation rec {
7777 "0lk19qss6ky7cqnvis54742cr2z0vl8c64chhch0kp6n83hray9x")
7878
7979 # security fixes from debian
80− (fetchurl {
81− name = "CVE-2016-9602.patch";
82− url = "https://anonscm.debian.org/cgit/pkg-qemu/qemu.git/plain/debian/patches/9pfs-symlink-attack-fixes-CVE-2016-9602.patch?h=debian/qemu_2.8%2bdfsg-3";
83− sha256 = "0f7m1k3hbw9v0dwqn53ds36s7s334vlidvbn0682s9r2sq0sjlkv";
84− })
85−
8680 (fetchurl {
8781 name = "CVE-2017-2630.patch";
8882 url = "https://anonscm.debian.org/cgit/pkg-qemu/qemu.git/plain/debian/patches/nbd_client-fix-drop_sync-CVE-2017-2630.patch?h=debian/qemu_2.8%2bdfsg-3";
@@ -141,7 +135,13 @@ stdenv.mkDerivation rec {
141135 (upstreamPatch "CVE-2017-5987" "6e86d90352adf6cb08295255220295cf23c4286e"
142136 "09yfxf93cisx8rhm0h48ib1ibwfs420k5pqpz8dnz33nci9567jm")
143137
144− ] ++ optional nixosTestRunner ./force-uid0-on-9p.patch;
138+ ] ++ (if nixosTestRunner then [ ./force-uid0-on-9p.patch ] else [
139+ (fetchurl {
140+ name = "CVE-2016-9602.patch";
141+ url = "https://anonscm.debian.org/cgit/pkg-qemu/qemu.git/plain/debian/patches/9pfs-symlink-attack-fixes-CVE-2016-9602.patch?h=debian/qemu_2.8%2bdfsg-3";
142+ sha256 = "0f7m1k3hbw9v0dwqn53ds36s7s334vlidvbn0682s9r2sq0sjlkv";
143+ })
144+ ]);
145145
146146 hardeningDisable = [ "stackprotector" ];
147147