From 5d00805a7c775382516e05b5b01e58df651408ab Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 18 Dec 2024 12:49:32 +0900 Subject: [PATCH] nix: check acl rollback Signed-off-by: Ophestra Umiker --- test.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.nix b/test.nix index 22f6f14..7118149 100644 --- a/test.nix +++ b/test.nix @@ -173,8 +173,12 @@ nixosTest { machine.send_chars("wayland-info && touch /tmp/success-client\n") machine.wait_for_file("/tmp/fortify.1000/tmpdir/0/success-client") machine.screenshot("foot_wayland_permissive") + # Verify acl on XDG_RUNTIME_DIR: + print(machine.succeed("getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep 1000000")) machine.send_chars("exit\n") machine.wait_until_fails("pgrep foot") + # Verify acl cleanup on XDG_RUNTIME_DIR: + machine.wait_until_fails("getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep 1000000") # Start a terminal (foot) within fortify from a terminal on workspace 4: machine.send_key("alt-4")