nixpkgs/pkgs/top-level
Joachim Fasting 75b9a7beac
grsecurity: implement a single NixOS kernel
This patch replaces the old grsecurity kernels with a single NixOS
specific grsecurity kernel.  This kernel is intended as a general
purpose kernel, tuned for casual desktop use.

Providing only a single kernel may seem like a regression compared to
offering a multitude of flavors.  It is impossible, however, to
effectively test and support that many options.  This is amplified by
the reality that very few seem to actually use grsecurity on NixOS,
meaning that bugs go unnoticed for long periods of time, simply because
those code paths end up never being exercised.  More generally, it is
hopeless to anticipate imagined needs.  It is better to start from a
solid foundation and possibly add more flavours on demand.

While the generic kernel is intended to cover a wide range of use cases,
it cannot cover everything.  For some, the configuration will be either
too restrictive or too lenient.  In those cases, the recommended
solution is to build a custom kernel --- this is *strongly* recommended
for security sensitive deployments.

Building a custom grsec kernel should be as simple as
```nix
linux_grsec_nixos.override {
  extraConfig = ''
    GRKERNSEC y
    PAX y
    # and so on ...
  '';
}
```

The generic kernel should be usable both as a KVM guest and host.  When
running as a host, the kernel assumes hardware virtualisation support.
Virtualisation systems other than KVM are *unsupported*: users of
non-KVM systems are better served by compiling a custom kernel.

Unlike previous Grsecurity kernels, this configuration disables `/proc`
restrictions in favor of `security.hideProcessInformation`.

Known incompatibilities:
- ZFS: can't load spl and zfs kernel modules; claims incompatibility
  with KERNEXEC method `or` and RAP; changing to `bts` does not fix the
  problem, which implies we'd have to disable RAP as well for ZFS to
  work
- `kexec()`: likely incompatible with KERNEXEC (unverified)
- Xen: likely incompatible with KERNEXEC and UDEREF (unverified)
- Virtualbox: likely incompatible with UDEREF (unverified)
2016-06-14 00:08:20 +02:00
..
aliases.nix pidgin: simplify using the wrapped version 2016-06-09 12:21:36 +02:00
all-packages.nix grsecurity: implement a single NixOS kernel 2016-06-14 00:08:20 +02:00
default.nix Fix comments typos. 2016-03-24 19:40:12 +00:00
dotnet-packages.nix dotnetPackages.MonoNat: 1.2.21 -> 1.2.24 2016-05-08 17:21:55 -03:00
emacs-packages.nix structured-haskell-mode: fix emacs package 2016-06-06 20:23:39 -07:00
guile-2-test.nix Replace references to all-packages.nix, by references to the top-level of nixpkgs repository. 2016-03-13 18:25:52 +00:00
haskell-packages.nix Add LTS Haskell 6.2. 2016-06-07 22:02:14 +02:00
lua-packages.nix luaPackages.luaexpat: fix case of LUA_LDIR make flag 2016-06-09 17:37:29 +02:00
make-tarball.nix tarball: No need to depend on nix development headers 2016-05-02 01:06:45 +03:00
metrics.nix nixpkgs-metrics: Suppress build products 2016-03-24 18:06:46 +01:00
node-packages-generated.nix Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
node-packages.json Add nodePackages.tern 2016-04-08 15:24:04 +02:00
node-packages.nix bower2nix: 2.1.0 -> 3.0.1 2016-03-28 08:23:06 +01:00
perl-packages.nix perl-Net-Statsd: fix license field 2016-06-07 21:21:42 +02:00
php-packages.nix Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
platforms.nix
pure-packages.nix
python-packages.nix opencv: add version with Python support to pythonPackages 2016-06-07 17:31:36 +03:00
release-cross.nix
release-lib.nix Replace references to all-packages.nix, by references to the top-level of nixpkgs repository. 2016-03-13 18:25:52 +00:00
release-python.nix Replace references to all-packages.nix, by references to the top-level of nixpkgs repository. 2016-03-13 18:25:52 +00:00
release-small.nix module_init_tools: Remove 2016-04-22 10:44:55 +03:00
release.nix try using nox from nixpkgs (#15857) 2016-05-31 12:59:24 +01:00
rust-packages.nix cargo: 0.9.0 -> 0.10.0, rustRegistry: 2016-05-12 -> 2016-05-28. 2016-05-28 15:05:11 +02:00
stdenv.nix Move stdenvDefault into its own file. 2016-03-20 16:11:51 +00:00