From 1b3300bf01ccdb794af79440e650e6b6a043137e Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 7 Apr 2017 13:08:52 +0200 Subject: [PATCH] nixos/tests/misc: check hidepid mount via /proc/mounts --- nixos/tests/misc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix index cd4086cb8f6..0efa7282368 100644 --- a/nixos/tests/misc.nix +++ b/nixos/tests/misc.nix @@ -122,7 +122,7 @@ import ./make-test.nix ({ pkgs, ...} : { # Test hidepid subtest "hidepid", sub { - $machine->succeed("grep -Fq hidepid=2 /etc/mtab"); + $machine->succeed("grep -Fq hidepid=2 /proc/mounts"); $machine->succeed("[ `su - sybil -c 'pgrep -c -u root'` = 0 ]"); $machine->succeed("[ `su - alice -c 'pgrep -c -u root'` != 0 ]"); };