From 752f66bf7d70fae2bf05fbf5941ff4be52b2b9a5 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 13 Dec 2017 20:40:53 +0300 Subject: 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. --- src/core/ngx_cycle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/ngx_cycle.h') diff --git a/src/core/ngx_cycle.h b/src/core/ngx_cycle.h index 2b48ccbd6..a825da2f9 100644 --- a/src/core/ngx_cycle.h +++ b/src/core/ngx_cycle.h @@ -114,6 +114,8 @@ typedef struct { ngx_array_t env; char **environment; + + ngx_uint_t transparent; /* unsigned transparent:1; */ } ngx_core_conf_t; -- cgit