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

+3 -6
+2
pkgs/os-specific/linux/kernel/linux-grsecurity-4.4.nix
··· 1 1 { stdenv, fetchurl, perl, buildLinux, ... } @ args: 2 2 3 + throw "grsecurity stable is no longer supported; please update your configuration" 4 + 3 5 import ./generic.nix (args // rec { 4 6 version = "4.4.5"; 5 7 extraMeta.branch = "4.4";
+1 -3
pkgs/os-specific/linux/kernel/patches.nix
··· 23 23 { name = "grsecurity-${grversion}-${kversion}"; 24 24 inherit grversion kernel patches kversion revision; 25 25 patch = fetchurl { 26 - url = if branch == "stable" 27 - then "https://github.com/kdave/grsecurity-patches/blob/master/grsecurity_patches/grsecurity-${grversion}-${kversion}-${revision}.patch?raw=true" 28 - else "https://github.com/slashbeast/grsecurity-scrape/blob/master/${branch}/grsecurity-${grversion}-${kversion}-${revision}.patch?raw=true"; 26 + url = "https://grsecurity.net/${branch}/grsecurity-${grversion}-${kversion}-${revision}.patch"; 29 27 inherit sha256; 30 28 }; 31 29 features.grsecurity = true;
-3
pkgs/top-level/release.nix
··· 323 323 }; 324 324 325 325 linuxPackages_testing = { }; 326 - linuxPackages_grsec_stable_desktop = { }; 327 - linuxPackages_grsec_stable_server = { }; 328 - linuxPackages_grsec_stable_server_xen = { }; 329 326 linuxPackages_grsec_testing_desktop = { }; 330 327 linuxPackages_grsec_testing_server = { }; 331 328 linuxPackages_grsec_testing_server_xen = { };