lol

grsecurity: add NixOS VM test

+20
+1
nixos/release.nix
··· 230 230 #tests.gitlab = callTest tests/gitlab.nix {}; 231 231 tests.gnome3 = callTest tests/gnome3.nix {}; 232 232 tests.gnome3-gdm = callTest tests/gnome3-gdm.nix {}; 233 + tests.grsecurity = callTest tests/grsecurity.nix {}; 233 234 tests.i3wm = callTest tests/i3wm.nix {}; 234 235 tests.installer.grub1 = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).grub1.test); 235 236 tests.installer.lvm = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).lvm.test);
+19
nixos/tests/grsecurity.nix
··· 1 + # Basic test to make sure grsecurity works 2 + 3 + import ./make-test.nix ({ pkgs, ...} : { 4 + name = "grsecurity"; 5 + meta = with pkgs.stdenv.lib.maintainers; { 6 + maintainers = [ copumpkin ]; 7 + }; 8 + 9 + machine = { config, pkgs, ... }: 10 + { boot.kernelPackages = pkgs.linuxPackages_grsec_testing_server; }; 11 + 12 + testScript = 13 + '' 14 + $machine->succeed("uname -a") =~ /grsec/; 15 + # FIXME: this seems to hang the whole test. Unclear why, but let's fix it 16 + # $machine->succeed("${pkgs.paxtest}/bin/paxtest blackhat"); 17 + ''; 18 + }) 19 +