diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2014-09-14 08:50:39 +0200 |
---|---|---|
committer | Pascal Wittmann <mail@pascal-wittmann.de> | 2014-09-14 08:51:01 +0200 |
commit | 28e1d2508436767347dcebc51cf22e5d17a48b8d (patch) | |
tree | 3ce04b3445061edceea463881e812893116ebc4d | |
parent | f4e8f18c19caa25912db85ab1732bfd7e788e1ee (diff) | |
download | nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar.gz nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar.bz2 nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar.lz nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar.xz nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.tar.zst nixlib-28e1d2508436767347dcebc51cf22e5d17a48b8d.zip |
super: fixed url to source and added patch for CVE-2014-0470
-rw-r--r-- | pkgs/tools/security/super/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/tools/security/super/default.nix b/pkgs/tools/security/super/default.nix index 0d2e34a41253..c88efb23531b 100644 --- a/pkgs/tools/security/super/default.nix +++ b/pkgs/tools/security/super/default.nix @@ -1,14 +1,20 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, fetchpatch }: stdenv.mkDerivation rec { name = "super-3.30.0"; src = fetchurl { name = "${name}.tar.gz"; - url = "http://ftp.ucolick.org/pub/users/will/${name}-tar.gz"; - sha256 = "1sxgixx1yg7h8g9799v79rk15gb39gn7p7fx032c078wxx38qwq4"; + url = "http://www.ucolick.org/~will/RUE/super/${name}-tar.gz"; + sha256 = "0k476f83w7f45y9jpyxwr00ikv1vhjiq0c26fgjch9hnv18icvwy"; }; + patches = [ + (fetchpatch { url = http://anonscm.debian.org/cgit/users/robert/super.git/plain/debian/patches/14-Fix-unchecked-setuid-call.patch; + sha256 = "08m9hw4kyfjv0kqns1cqha4v5hkgp4s4z0q1rgif1fnk14xh7wqh"; + }) + ]; + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; configureFlags = "--sysconfdir=/etc --localstatedir=/var"; @@ -16,7 +22,7 @@ stdenv.mkDerivation rec { installFlags = "sysconfdir=$(out)/etc localstatedir=$(TMPDIR)"; meta = { - homepage = http://ftp.ucolick.org/pub/users/will/; + homepage = http://www.ucolick.org/~will/; description = "Allows users to execute scripts as if they were root"; longDescription = '' |