From 928a9f61e92b1570a81d005e1c2e7e849336856f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 9 Jun 2026 18:08:17 +0900 Subject: cmd/hsu: remove parent check This check serves no real purpose and only makes it more difficult to start containers. Signed-off-by: Ophestra --- test/test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index a9e60d8b..05001bdf 100644 --- a/test/test.py +++ b/test/test.py @@ -92,8 +92,10 @@ print(denyOutput) denyOutputVerbose = machine.fail("sudo -u untrusted -i hakurei -v exec &>/dev/stdout") print(denyOutputVerbose) -# Fail direct hsu call: -print(machine.fail("sudo -u alice -i hsu")) +# Direct hsu call: +userid = machine.succeed("sudo -u alice -i hsu") +if userid != "0": + raise Exception(f"unexpected userid: {userid}") # Verify hsu fault behaviour: if denyOutput != "hsu: uid 1001 is not in the hsurc file\n": -- cgit v1.3.1