diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-26 16:51:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-26 16:51:57 +0900 |
| commit | 5de28800add32d2ac64446c05c805b04913fcc4f (patch) | |
| tree | 34ed95fcf502db6beb29c7e60f2ca68beb6b643f /test | |
| parent | 8e50293ab78e942ad6d2ea567e0a66226f56611f (diff) | |
test: verify fsu ppid check
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py index 87e76b01..12a7e486 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}") |
