diff options
author | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2023-06-21 15:41:10 -0400 |
---|---|---|
committer | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2023-11-13 22:13:07 +0100 |
commit | a58a8909a1a15b50013530ff54e1a66b66daf5d4 (patch) | |
tree | 08fde0c9ef01b9a84a1f9fcbf0935574f4f7e0ac /pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch | |
parent | 9cec5c807af15237c3cbf377268d3611424d5bd3 (diff) | |
download | nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar.gz nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar.bz2 nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar.lz nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar.xz nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.tar.zst nixpkgs-a58a8909a1a15b50013530ff54e1a66b66daf5d4.zip |
checksec: add missing deps, don't clean env
Fix dependencies that are required by checksec. Previously, checksec would sanitiz PATH, removing the PATH set by the wrapper. A patch was added to remove this behavior. Also replacing tools referenced with an absolute path with their store path. Co-authored-by: Jonathan Cooper <jonathan@cooper.cafe>
Diffstat (limited to 'pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch')
-rw-r--r-- | pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch b/pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch new file mode 100644 index 00000000000..bd639574f63 --- /dev/null +++ b/pkgs/os-specific/linux/checksec/0002-don-t-sanatize-the-environment.patch @@ -0,0 +1,25 @@ +From 3b047ab4271919856ae0a3dee3a03a24045c0016 Mon Sep 17 00:00:00 2001 +From: Paul Meyer <49727155+katexochen@users.noreply.github.com> +Date: Mon, 13 Nov 2023 20:24:54 +0000 +Subject: [PATCH] don't sanatize the environment + +--- + checksec | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/checksec b/checksec +index 4fc3c31..135223a 100755 +--- a/checksec ++++ b/checksec +@@ -2,9 +2,6 @@ + # Do not edit this file directly, this file is generated from the files + # in the src directory. Any updates to this file will be overwritten when generated + +-# sanitize the environment before run +-[[ "$(env | /bin/sed -r -e '/^(PWD|SHLVL|_)=/d')" ]] && exec -c "$0" "$@" +- + # --- Modified Version --- + # Name : checksec.sh + # Version : 1.7.0 +-- +2.42.0 |