diff options
| author | 2024-12-26 15:53:51 +0100 | |
|---|---|---|
| committer | 2024-12-26 15:53:51 +0100 | |
| commit | 629a7953f99191ac3b1d74f44ddd5b94e097adee (patch) | |
| tree | 8334d7abdb35a12ffcc4fe789d5bb0a2c4c8a8d9 /sandbox.c | |
| parent | import updated landloc.h (diff) | |
| download | penes-snac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.tar.gz penes-snac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.tar.xz penes-snac2-629a7953f99191ac3b1d74f44ddd5b94e097adee.zip | |
use compat macros to compile on kernels without LANDLOCK_ACCESS_NET_*
Diffstat (limited to '')
| -rw-r--r-- | sandbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||