mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
19 lines
529 B
Nix
19 lines
529 B
Nix
# Basic test to make sure grsecurity works
|
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "grsecurity";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ copumpkin ];
|
|
};
|
|
|
|
machine = { config, pkgs, ... }:
|
|
{ boot.kernelPackages = pkgs.linuxPackages_grsec_testing_server; };
|
|
|
|
testScript =
|
|
''
|
|
$machine->succeed("uname -a") =~ /grsec/;
|
|
# FIXME: this seems to hang the whole test. Unclear why, but let's fix it
|
|
# $machine->succeed("${pkgs.paxtest}/bin/paxtest blackhat");
|
|
'';
|
|
})
|
|
|