libvncserver: add CVE-2018-7225 patch

This commit is contained in:
Mario Rodas 2018-12-16 19:37:12 -05:00
parent 9be286ecb7
commit 03fddb139e
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, {stdenv, fetchurl, fetchpatch,
libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng, libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng,
systemd systemd
}: }:
@ -18,6 +18,13 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
inherit (s) url sha256; inherit (s) url sha256;
}; };
patches = [
# CVE-2018-7225. Remove with the next release
(fetchpatch {
url = https://salsa.debian.org/debian/libvncserver/raw/master/debian/patches/CVE-2018-7225.patch;
sha256 = "1hj1lzxsrdmzzl061vg0ncdpvfmvvkrpk8q12mp70qvszcqa7ja3";
})
];
preConfigure = '' preConfigure = ''
sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
''; '';