tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
grsecurity: add NixOS VM test
Dan Peebles
10 years ago
dd184470
78956c77
+20
2 changed files
expand all
collapse all
unified
split
nixos
release.nix
tests
grsecurity.nix
+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
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
1
+
# Basic test to make sure grsecurity works
2
2
+
3
3
+
import ./make-test.nix ({ pkgs, ...} : {
4
4
+
name = "grsecurity";
5
5
+
meta = with pkgs.stdenv.lib.maintainers; {
6
6
+
maintainers = [ copumpkin ];
7
7
+
};
8
8
+
9
9
+
machine = { config, pkgs, ... }:
10
10
+
{ boot.kernelPackages = pkgs.linuxPackages_grsec_testing_server; };
11
11
+
12
12
+
testScript =
13
13
+
''
14
14
+
$machine->succeed("uname -a") =~ /grsec/;
15
15
+
# FIXME: this seems to hang the whole test. Unclear why, but let's fix it
16
16
+
# $machine->succeed("${pkgs.paxtest}/bin/paxtest blackhat");
17
17
+
'';
18
18
+
})
19
19
+