1# Basic test to make sure grsecurity works 2 3import ./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