ldb: apply patch for CVE-2019-3824
This commit is contained in:
parent
de0612c46c
commit
84c1b2fbd8
|
@ -19,6 +19,17 @@ stdenv.mkDerivation rec {
|
||||||
cmocka
|
cmocka
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# CVE-2019-3824
|
||||||
|
# downloading the patch from debian as they have ported the patch from samba to ldb but otherwise is identical to
|
||||||
|
# https://bugzilla.samba.org/attachment.cgi?id=14857
|
||||||
|
(fetchurl {
|
||||||
|
name = "CVE-2019-3824.patch";
|
||||||
|
url = "https://sources.debian.org/data/main/l/ldb/2:1.1.27-1+deb9u1/debian/patches/CVE-2019-3824-master-v4-5-02.patch";
|
||||||
|
sha256 = "1idnqckvjh18rh9sbq90rr4sxfviha9nd1ca9pd6lai0y6r6q4yd";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
|
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue