diff options
| author | 2024-12-08 08:54:00 +0100 | |
|---|---|---|
| committer | 2024-12-08 08:54:00 +0100 | |
| commit | fb8145297c45c8fdfbdc3872c8345e51569a4a01 (patch) | |
| tree | 73c5df19b82158d748444bf4af8a0c926f33a742 /sandbox.c | |
| parent | cleanup rules (diff) | |
| download | snac2-fb8145297c45c8fdfbdc3872c8345e51569a4a01.tar.gz snac2-fb8145297c45c8fdfbdc3872c8345e51569a4a01.tar.xz snac2-fb8145297c45c8fdfbdc3872c8345e51569a4a01.zip | |
make log output specific to landlock status
Diffstat (limited to 'sandbox.c')
| -rw-r--r-- | sandbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -104,9 +104,10 @@ void sbox_enter(const char *basedir) | |||
| 104 | xs_free(p); | 104 | xs_free(p); |
| 105 | #elif defined (__linux__) | 105 | #elif defined (__linux__) |
| 106 | 106 | ||
| 107 | sbox_enter_linux_(basedir, address, smail); | 107 | if (sbox_enter_linux_(basedir, address, smail) == 0) |
| 108 | 108 | srv_log(xs_dup("landlocked")); | |
| 109 | srv_log(xs_dup("landlocked")); | 109 | else |
| 110 | srv_log(xs_dup("landlocking failed")); | ||
| 110 | 111 | ||
| 111 | #endif | 112 | #endif |
| 112 | } | 113 | } |