diff options
author | Dan Peebles <pumpkin@me.com> | 2016-01-24 04:06:19 +0000 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2016-01-24 04:06:19 +0000 |
commit | dd184470550d02ca8f89a0c11b9b20de3ecfa3d1 (patch) | |
tree | a4817c09cda6bfa8576a2676ee95e9748bf813cf /nixos/tests | |
parent | 78956c77c019456d7528075f9487d6a5620d3588 (diff) | |
download | nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar.gz nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar.bz2 nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar.lz nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar.xz nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.tar.zst nixlib-dd184470550d02ca8f89a0c11b9b20de3ecfa3d1.zip |
grsecurity: add NixOS VM test
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/grsecurity.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/grsecurity.nix b/nixos/tests/grsecurity.nix new file mode 100644 index 000000000000..14f1aa9ff885 --- /dev/null +++ b/nixos/tests/grsecurity.nix @@ -0,0 +1,19 @@ +# 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"); + ''; +}) + |