nixos/tests/misc: check hidepid mount via /proc/mounts
This commit is contained in:
parent
0feca1abb6
commit
1b3300bf01
@ -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 ]");
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user