changed CAP_NET_ADMIN to CAP_NET_RAW as it's enough

This commit is contained in:
yrutschle committed 2021-05-11 06:44:27 +02:00
1 parent 79f49f4481
commit c41ec489e0
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -20,10 +20,10 @@ vNEXT:
Warn about unknown settings in the configuration
file.
Added per-protocol `transparent` option. The option
requires CAP_NET_ADMIN to work. sslh-fork drops the
capability after creating the server-side
transparent socket.
Added per-protocol `transparent` option. sslh-fork
drops the capability after creating the server-side
transparent socket. Transparent now uses CAP_NET_RAW
instead of CAP_NET_ADMIN.
v1.21: 11JUL2020
WARNING:
+2 -2
View File
@@ -801,7 +801,7 @@ static int use_transparent(void)
}
/* set needed capabilities for effective and permitted, clear rest
* IN: cap_net_admin: set to 1 to set CAP_NET_ADMIN
* IN: cap_net_admin: set to 1 to set CAP_NET_RAW
* */
void set_capabilities(int cap_net_admin) {
#ifdef LIBCAP
@@ -811,7 +811,7 @@ void set_capabilities(int cap_net_admin) {
int ncap = 0;
if (cap_net_admin)
cap_list[ncap++] = CAP_NET_ADMIN;
cap_list[ncap++] = CAP_NET_RAW;
caps = cap_init();