Skip to content

Commit

Permalink
transmission: patch CVE-2018-10756
Browse files Browse the repository at this point in the history
nixpkgs master is not vulnerable to this.  We use Fedora patch,
as the upstream one does not apply to this version.
Fixes #91026 (roundup issue).
  • Loading branch information
vcunat committed Jun 18, 2020
1 parent 7bb2e7e commit 788764b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/applications/networking/p2p/transmission/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, intltool, file, wrapGAppsHook
{ stdenv, fetchurl, fetchpatch, pkgconfig, intltool, file, wrapGAppsHook
, openssl, curl, libevent, inotify-tools, systemd, zlib
, enableGTK3 ? false, gtk3
, enableSystemd ? stdenv.isLinux
Expand All @@ -24,6 +24,16 @@ stdenv.mkDerivation rec {
++ optionals enableSystemd [ systemd ]
++ optionals stdenv.isLinux [ inotify-tools ];

patches = [
(fetchpatch {
name = "cve-2018-10756.diff";
url = "https://src.fedoraproject.org/rpms/transmission/raw/ec98cd40/f/"
+ "2123adf8e5e1c2b48791f9d22fc8c747e974180e.patch";
extraPrefix = "./"; # this way we don't need to add -p0 flag
sha256 = "1wq2sk81yyi8ida4115f9mpkna63dijkx8vphac72w2fhpz905k7";
})
];

postPatch = ''
substituteInPlace ./configure \
--replace "libsystemd-daemon" "libsystemd" \
Expand Down

0 comments on commit 788764b

Please sign in to comment.