From 5de28800add32d2ac64446c05c805b04913fcc4f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 26 Feb 2025 16:51:57 +0900 Subject: [PATCH] test: verify fsu ppid check Signed-off-by: Ophestra --- test/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.py b/test/test.py index 87e76b0..12a7e48 100644 --- a/test/test.py +++ b/test/test.py @@ -95,6 +95,9 @@ print(denyOutput) denyOutputVerbose = machine.fail("sudo -u untrusted -i fortify -v run &>/dev/stdout") print(denyOutputVerbose) +# Fail direct fsu call: +print(machine.fail("sudo -u alice -i fsu")) + # Verify PrintBaseError behaviour: if denyOutput != "fsu: uid 1001 is not in the fsurc file\n": raise Exception(f"unexpected deny output:\n{denyOutput}")