commit fb8145297c45c8fdfbdc3872c8345e51569a4a01 parent 7d07d3bffd2994055165d10a57e93327fc86d961 Author: shtrophic <christoph@liebender.dev> Date: Sun, 8 Dec 2024 08:54:00 +0100 make log output specific to landlock status Diffstat:
M | sandbox.c | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sandbox.c b/sandbox.c @@ -104,9 +104,10 @@ void sbox_enter(const char *basedir) xs_free(p); #elif defined (__linux__) - sbox_enter_linux_(basedir, address, smail); - - srv_log(xs_dup("landlocked")); + if (sbox_enter_linux_(basedir, address, smail) == 0) + srv_log(xs_dup("landlocked")); + else + srv_log(xs_dup("landlocking failed")); #endif }