diff options
author | Roman Arutyunyan <arut@nginx.com> | 2017-12-13 20:40:53 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2017-12-13 20:40:53 +0300 |
commit | 752f66bf7d70fae2bf05fbf5941ff4be52b2b9a5 (patch) | |
tree | 78fc3bcc2f52d8fc71fa4ec12080fdf891e0a113 /src/os/unix/ngx_linux_config.h | |
parent | d2d737e70b46429ef9ed71b99402a9151f3c2e1f (diff) |
Retain CAP_NET_RAW capability for transparent proxying.
The capability is retained automatically in unprivileged worker processes after
changing UID if transparent proxying is enabled at least once in nginx
configuration.
The feature is only available in Linux.
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h index 2f6129d88..b22ea4378 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -99,6 +99,11 @@ typedef struct iocb ngx_aiocb_t; #endif +#if (NGX_HAVE_CAPABILITIES) +#include <sys/capability.h> +#endif + + #define NGX_LISTEN_BACKLOG 511 |