mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
clamav: add patch for CVE-2021-1405
using upstream master patch, just as debian have done
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
{ stdenv, fetchurl, fetchpatch, pkgconfig
|
||||
, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
|
||||
, libmspack, systemd, Foundation
|
||||
}:
|
||||
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "06rrzyrhnr0rswryijpbbzywr6387rv8qjq8sb8cl3h2d1m45ggf";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-1405.patch";
|
||||
url = "https://github.com/Cisco-Talos/clamav-devel/commit/0c1ec30f9a292b0a5eca4aaaa651150aa5712d6d.patch";
|
||||
sha256 = "0ygqiv9ldwhhnlwxkz91bab4hnzfwczf96mqm1bsa4gz9wmshlks";
|
||||
})
|
||||
];
|
||||
|
||||
# don't install sample config files into the absolute sysconfdir folder
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile.in --replace ' etc ' ' '
|
||||
|
||||
Reference in New Issue
Block a user