summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2015-04-13 17:12:41 -0500
committerAustin Seipp <aseipp@pobox.com>2015-04-13 17:12:41 -0500
commit2d8cfe76a9e4f05e391d30f1654d45dee5993b8a (patch)
treec6cb88902a60a48a746b633335101e1fa49c981a /pkgs/os-specific
parent8d3b8d0dc8b6fa5f29eb417676706d83099a3ae2 (diff)
parent96063873e2fd24dd4dbe44f85d079026ef62b6ef (diff)
downloadnixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar.gz
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar.bz2
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar.lz
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar.xz
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.tar.zst
nixpkgs-2d8cfe76a9e4f05e391d30f1654d45dee5993b8a.zip
Merge pull request #7186 from arno01/checksecfix
checksec: use binutils instead of elfutils
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/checksec/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/checksec/default.nix b/pkgs/os-specific/linux/checksec/default.nix
index 4701d774dfd..b423dc3a086 100644
--- a/pkgs/os-specific/linux/checksec/default.nix
+++ b/pkgs/os-specific/linux/checksec/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, file, findutils, elfutils, glibc }:
+{ stdenv, fetchurl, file, findutils, binutils, glibc, procps, coreutils }:
 
 stdenv.mkDerivation rec {
   name = "checksec-${version}";
@@ -25,9 +25,11 @@ stdenv.mkDerivation rec {
     substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
     substituteInPlace $out/bin/checksec --replace "file $" "${file}/bin/file $"
     substituteInPlace $out/bin/checksec --replace "xargs file" "xargs ${file}/bin/file"
-    substituteInPlace $out/bin/checksec --replace " readelf -" " ${elfutils}/bin/readelf -"
-    substituteInPlace $out/bin/checksec --replace "(readelf -" "(${elfutils}/bin/readelf -"
-    substituteInPlace $out/bin/checksec --replace "command_exists readelf" "command_exists ${elfutils}/bin/readelf"
+    substituteInPlace $out/bin/checksec --replace " readelf -" " ${binutils}/bin/readelf -"
+    substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils}/bin/readelf -"
+    substituteInPlace $out/bin/checksec --replace "command_exists readelf" "command_exists ${binutils}/bin/readelf"
+    substituteInPlace $out/bin/checksec --replace "/sbin/sysctl -" "${procps}/sbin/sysctl -"
+    substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -"
   '';
 
   phases = "unpackPhase patchPhase installPhase";