mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nettools: apply patch for CVE-2025-46836
https://github.com/ecki/net-tools/security/advisories/GHSA-pfwf-h6m3-63wf
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -13,6 +14,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "CVE-2025-46836.patch";
|
||||
url = "https://github.com/ecki/net-tools/commit/7a8f42fb20013a1493d8cae1c43436f85e656f2d.patch";
|
||||
hash = "sha256-2R9giETNN3e2t1DPQj0kb4uYCXpkBxnF8grWIBLM7s0=";
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cp ${./config.h} config.h
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user