diff options
| author | shtrophic <christoph@liebender.dev> | 2024-12-08 08:54:00 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2024-12-08 08:54:00 +0100 |
| commit | fb8145297c45c8fdfbdc3872c8345e51569a4a01 (patch) | |
| tree | 73c5df19b82158d748444bf4af8a0c926f33a742 | |
| parent | 7d07d3bffd2994055165d10a57e93327fc86d961 (diff) | |
make log output specific to landlock status
| -rw-r--r-- | sandbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 } |