3
0
Fork 0
forked from mirrors/nixpkgs

grsecurity: drop support for 4.4 kernels

From now on, only the testing branch of grsecurity will be supported.
Additionally, use only patches from upstream.

It's impossible to provide meaningful support for grsecurity stable.
First, because building and testing \(m \times n \times z) [1], packages
is infeasible.  Second, because stable patches are only available from
upstream for-pay, making us reliant on third-parties for patches. In
addition to creating yet more work for the maintainers, using stable
patches provided by a third-party goes against the wishes of upstream.

nixpkgs provides the tools necessary to build grsecurity kernels for any
version the user chooses, however, provided they pay for, or otherwise
acquire, the patch themselves.

Eventually, we'll want to remove the now obsolete top-level attributes,
but leave them in for now to smoothe migration (they have been removed
from top-level/release.nix, though, because it makes no sense to have
them there).

[1]: where \(m\) is the number of grsecurity flavors, \(n\) is the
number of kernel versions, and z is the size of the `linuxPackages` set
This commit is contained in:
Joachim Fasting 2016-05-03 19:24:40 +02:00
parent d6e4c1b750
commit 0bd31bce10
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4
3 changed files with 3 additions and 6 deletions

View file

@ -1,5 +1,7 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
throw "grsecurity stable is no longer supported; please update your configuration"
import ./generic.nix (args // rec {
version = "4.4.5";
extraMeta.branch = "4.4";

View file

@ -23,9 +23,7 @@ let
{ name = "grsecurity-${grversion}-${kversion}";
inherit grversion kernel patches kversion revision;
patch = fetchurl {
url = if branch == "stable"
then "https://github.com/kdave/grsecurity-patches/blob/master/grsecurity_patches/grsecurity-${grversion}-${kversion}-${revision}.patch?raw=true"
else "https://github.com/slashbeast/grsecurity-scrape/blob/master/${branch}/grsecurity-${grversion}-${kversion}-${revision}.patch?raw=true";
url = "https://grsecurity.net/${branch}/grsecurity-${grversion}-${kversion}-${revision}.patch";
inherit sha256;
};
features.grsecurity = true;

View file

@ -323,9 +323,6 @@ let
};
linuxPackages_testing = { };
linuxPackages_grsec_stable_desktop = { };
linuxPackages_grsec_stable_server = { };
linuxPackages_grsec_stable_server_xen = { };
linuxPackages_grsec_testing_desktop = { };
linuxPackages_grsec_testing_server = { };
linuxPackages_grsec_testing_server_xen = { };