From af2a12755113d8c1e1464fbe20ead31389a66e32 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 22 Jul 2013 21:44:31 +0200 Subject: [PATCH] Add linux 3.2.48 with grsecurity patches --- pkgs/os-specific/linux/kernel/builder.sh | 2 +- pkgs/os-specific/linux/kernel/patches.nix | 9 +++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 14d8108ba16..47c7a22c177 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -1,7 +1,7 @@ source $stdenv/setup -makeFlags="ARCH=$arch SHELL=/bin/sh" +makeFlags="ARCH=$arch SHELL=/bin/sh $makeFlags" if [ -n "$crossConfig" ]; then makeFlags="$makeFlags CROSS_COMPILE=$crossConfig-" fi diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix index 35f47b8e607..37c5f926e87 100644 --- a/pkgs/os-specific/linux/kernel/patches.nix +++ b/pkgs/os-specific/linux/kernel/patches.nix @@ -154,6 +154,15 @@ rec { patch = ./mips-ext3-n32.patch; }; + grsecurity_2_9_1_3_2_48 = + { name = "grsecurity-2.9.1-3.2.48"; + patch = + (fetchurl { + url = http://grsecurity.net/stable/grsecurity-2.9.1-3.2.48-201307212241.patch; + sha256 = "1llgrcd7ynxx60dn05bcbysd6a1091wwxkck4d15gvp71s9r6scm"; + }); + }; + guruplug_defconfig = { # Default configuration for the GuruPlug. From # . diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6020b4ae515..fab5abd9c49 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6348,6 +6348,10 @@ let ]; }; + linux_3_2_grsecurity = lib.overrideDerivation (linux_3_2.override (args: { + kernelPatches = args.kernelPatches ++ [ kernelPatches.grsecurity_2_9_1_3_2_48 ]; + })) (args: { makeFlags = "DISABLE_PAX_PLUGINS=y";}); + linux_3_2_apparmor = linux_3_2.override { kernelPatches = [ kernelPatches.apparmor_3_2 ]; extraConfig = ''