aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2024-12-08 08:54:00 +0100
committershtrophic <christoph@liebender.dev>2024-12-08 08:54:00 +0100
commitfb8145297c45c8fdfbdc3872c8345e51569a4a01 (patch)
tree73c5df19b82158d748444bf4af8a0c926f33a742 /sandbox.c
parent7d07d3bffd2994055165d10a57e93327fc86d961 (diff)
make log output specific to landlock status
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sandbox.c b/sandbox.c
index abced68..3a5ca48 100644
--- 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
}