From: Michael Tremer Date: Sun, 5 Nov 2023 17:47:50 +0000 (+0000) Subject: jail: Actually exit if something went wrong during initialization X-Git-Url: http://git.ipfire.org/?p=pakfire.git;a=commitdiff_plain;h=3a9f6931d2ad798b5d742ab4e92eeebfca985cb4 jail: Actually exit if something went wrong during initialization Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/jail.c b/src/libpakfire/jail.c index acbf5645..ece668ec 100644 --- a/src/libpakfire/jail.c +++ b/src/libpakfire/jail.c @@ -1819,13 +1819,13 @@ static int pakfire_jail_child2(struct pakfire_jail* jail, // Fail if we are not PID 1 if (pid != 1) { CTX_ERROR(jail->ctx, "Child process is not PID 1\n"); - //return 126; + return 126; } // Fail if we are not running as root if (uid || gid || euid || egid) { ERROR(jail->pakfire, "Child process is not running as root\n"); - //return 126; + return 126; } const char* arch = pakfire_get_effective_arch(jail->pakfire);