about summary refs log tree commit diff
path: root/pkgs/build-support/grsecurity/flavors.nix
blob: 969ca579f5a62ab25c7e288c80ea1d6fe91a30c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
let
  mkOpts = ver: prio: sys: virt: swvirt: hwvirt:
    { config.priority               = prio;
      config.system                 = sys;
      config.virtualisationConfig   = virt;
      config.hardwareVirtualisation = hwvirt;
      config.virtualisationSoftware = swvirt;
    } // builtins.listToAttrs [ { name = ver; value = true; } ];
in
{
  # Stable kernels
  linux_grsec_stable_desktop =
    mkOpts "stable" "performance" "desktop" "host" "kvm" true;
  linux_grsec_stable_server  =
    mkOpts "stable" "security" "server" "host" "kvm" true;
  linux_grsec_stable_server_xen =
    mkOpts "stable" "security" "server" "guest" "xen" true;

  # Testing kernels
  linux_grsec_testing_desktop =
    mkOpts "testing" "performance" "desktop" "host" "kvm" true;
  linux_grsec_testing_server  =
    mkOpts "testing" "security" "server" "host" "kvm" true;
  linux_grsec_testing_server_xen =
    mkOpts "testing" "security" "server" "guest" "xen" true;
}