aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2024-12-26 15:53:51 +0100
committershtrophic <christoph@liebender.dev>2024-12-26 15:53:51 +0100
commit629a7953f99191ac3b1d74f44ddd5b94e097adee (patch)
tree8334d7abdb35a12ffcc4fe789d5bb0a2c4c8a8d9 /sandbox.c
parent1a44f56372ac4ae821016e32daa7b23fbd4a93d4 (diff)
use compat macros to compile on kernels without LANDLOCK_ACCESS_NET_*
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox.c b/sandbox.c
index 6eafc43..b7c602e 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -46,11 +46,11 @@ LL_BEGIN(sbox_enter_linux_, const char* basedir, const char *address, int smail)
if (*address != '/') {
unsigned short listen_port = xs_number_get(xs_dict_get(srv_config, "port"));
- LL_PORT(listen_port, LANDLOCK_ACCESS_NET_BIND_TCP);
+ LL_PORT(listen_port, LANDLOCK_ACCESS_NET_BIND_TCP_COMPAT);
}
- LL_PORT(80, LANDLOCK_ACCESS_NET_CONNECT_TCP);
- LL_PORT(443, LANDLOCK_ACCESS_NET_CONNECT_TCP);
+ LL_PORT(80, LANDLOCK_ACCESS_NET_CONNECT_TCP_COMPAT);
+ LL_PORT(443, LANDLOCK_ACCESS_NET_CONNECT_TCP_COMPAT);
} LL_END