forked from rosa/hakurei
cmd/hsu: remove parent check
This check serves no real purpose and only makes it more difficult to start containers. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+4
-2
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user