summaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorGravatar shtrophic2024-12-26 15:53:51 +0100
committerGravatar shtrophic2024-12-26 15:53:51 +0100
commit629a7953f99191ac3b1d74f44ddd5b94e097adee (patch)
tree8334d7abdb35a12ffcc4fe789d5bb0a2c4c8a8d9 /sandbox.c
parentimport updated landloc.h (diff)
downloadsnac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.tar.gz
snac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.tar.xz
snac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.zip
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)
46 46
47 if (*address != '/') { 47 if (*address != '/') {
48 unsigned short listen_port = xs_number_get(xs_dict_get(srv_config, "port")); 48 unsigned short listen_port = xs_number_get(xs_dict_get(srv_config, "port"));
49 LL_PORT(listen_port, LANDLOCK_ACCESS_NET_BIND_TCP); 49 LL_PORT(listen_port, LANDLOCK_ACCESS_NET_BIND_TCP_COMPAT);
50 } 50 }
51 51
52 LL_PORT(80, LANDLOCK_ACCESS_NET_CONNECT_TCP); 52 LL_PORT(80, LANDLOCK_ACCESS_NET_CONNECT_TCP_COMPAT);
53 LL_PORT(443, LANDLOCK_ACCESS_NET_CONNECT_TCP); 53 LL_PORT(443, LANDLOCK_ACCESS_NET_CONNECT_TCP_COMPAT);
54 54
55} LL_END 55} LL_END
56 56