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:
2026-06-09 18:08:17 +09:00
parent ce06539eca
commit 928a9f61e9
3 changed files with 13 additions and 26 deletions
+8 -1
View File
@@ -22,7 +22,14 @@ in
{
name = "funcgraph-retval";
patch = null;
structuredExtraConfig.FUNCTION_GRAPH_RETVAL = lib.kernel.yes;
structuredExtraConfig = with lib.kernel; {
FUNCTION_GRAPH_RETVAL = yes;
RUST = lib.mkForce unset;
DRM_NOVA = lib.mkForce unset;
DRM_PANIC_SCREEN_QR_CODE = lib.mkForce unset;
NOVA_CORE = lib.mkForce unset;
};
}
];
}
+4 -2
View File
@@ -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":