summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/grsec-path.patch
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-02-27 19:54:55 +0100
committertg(x) <*@tg-x.net>2016-02-27 19:54:55 +0100
commit4e3d6d3e90de85b610290af60ba374da20a2cc69 (patch)
tree60a775b870249cf4f7ab55f22b90c894825822af /pkgs/os-specific/linux/kernel/grsec-path.patch
parent75f353ffbdbd5345005e6231a93dd1eae95f6785 (diff)
downloadnixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar.gz
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar.bz2
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar.lz
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar.xz
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.tar.zst
nixlib-4e3d6d3e90de85b610290af60ba374da20a2cc69.zip
grsecurity: separate fix patches for testing & stable
Diffstat (limited to 'pkgs/os-specific/linux/kernel/grsec-path.patch')
-rw-r--r--pkgs/os-specific/linux/kernel/grsec-path.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/pkgs/os-specific/linux/kernel/grsec-path.patch b/pkgs/os-specific/linux/kernel/grsec-path.patch
deleted file mode 100644
index bef1a75c23d4..000000000000
--- a/pkgs/os-specific/linux/kernel/grsec-path.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/kernel/kmod.c b/kernel/kmod.c
-index a689506..30747b4 100644
---- a/kernel/kmod.c
-+++ b/kernel/kmod.c
-@@ -294,11 +294,8 @@ static int ____call_usermodehelper(void *data)
- 	   out the path to be used prior to this point and are now operating
- 	   on that copy
- 	*/
--	if ((strncmp(sub_info->path, "/sbin/", 6) && strncmp(sub_info->path, "/usr/lib/", 9) &&
--	     strncmp(sub_info->path, "/lib/", 5) && strncmp(sub_info->path, "/lib64/", 7) &&
--	     strncmp(sub_info->path, "/usr/libexec/", 13) && strncmp(sub_info->path, "/usr/bin/", 9) &&
--	     strncmp(sub_info->path, "/usr/sbin/", 10) &&
--	     strcmp(sub_info->path, "/usr/share/apport/apport")) || strstr(sub_info->path, "..")) {
-+	if ((strncmp(sub_info->path, "/sbin/", 6) && strncmp(sub_info->path, "/nix/store/", 11) &&
-+	     strncmp(sub_info->path, "/run/current-system/systemd/lib/", 32)) || strstr(sub_info->path, "..")) {
- 		printk(KERN_ALERT "grsec: denied exec of usermode helper binary %.950s located outside of permitted system paths\n", sub_info->path);
- 		retval = -EPERM;
- 		goto out;