nixos/tests/misc: check hidepid mount via /proc/mounts

This commit is contained in:
Joachim Fasting 2017-04-07 13:08:52 +02:00
parent 0feca1abb6
commit 1b3300bf01
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -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 ]");
};