Merge pull request #7186 from arno01/checksecfix
checksec: use binutils instead of elfutils
This commit is contained in:
commit
2d8cfe76a9
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, file, findutils, elfutils, glibc }:
|
{ stdenv, fetchurl, file, findutils, binutils, glibc, procps, coreutils }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "checksec-${version}";
|
name = "checksec-${version}";
|
||||||
@ -25,9 +25,11 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
|
substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
|
||||||
substituteInPlace $out/bin/checksec --replace "file $" "${file}/bin/file $"
|
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 "xargs file" "xargs ${file}/bin/file"
|
||||||
substituteInPlace $out/bin/checksec --replace " readelf -" " ${elfutils}/bin/readelf -"
|
substituteInPlace $out/bin/checksec --replace " readelf -" " ${binutils}/bin/readelf -"
|
||||||
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${elfutils}/bin/readelf -"
|
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils}/bin/readelf -"
|
||||||
substituteInPlace $out/bin/checksec --replace "command_exists readelf" "command_exists ${elfutils}/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";
|
phases = "unpackPhase patchPhase installPhase";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user