mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-24 20:55:30 +00:00
Fix 90d7c6b97d CAP_NET_RAW, not CAP_NET_ADMIN.
This commit is contained in:
@@ -481,10 +481,10 @@ int main (int argc, char **argv)
|
|||||||
need_cap_net_bind_service = 1;
|
need_cap_net_bind_service = 1;
|
||||||
|
|
||||||
/* usptream servers which bind to an interface call SO_BINDTODEVICE
|
/* usptream servers which bind to an interface call SO_BINDTODEVICE
|
||||||
for each TCP connection, so need CAP_NET_ADMIN */
|
for each TCP connection, so need CAP_NET_RAW */
|
||||||
for (serv = daemon->servers; serv; serv = serv->next)
|
for (serv = daemon->servers; serv; serv = serv->next)
|
||||||
if (serv->interface[0] != 0)
|
if (serv->interface[0] != 0)
|
||||||
need_cap_net_admin = 1;
|
need_cap_net_raw = 1;
|
||||||
|
|
||||||
/* If we're doing Dbus or UBus, the above can be set dynamically,
|
/* If we're doing Dbus or UBus, the above can be set dynamically,
|
||||||
(as can ports) so always (potentially) needed. */
|
(as can ports) so always (potentially) needed. */
|
||||||
@@ -492,7 +492,7 @@ int main (int argc, char **argv)
|
|||||||
if (option_bool(OPT_DBUS))
|
if (option_bool(OPT_DBUS))
|
||||||
{
|
{
|
||||||
need_cap_net_bind_service = 1;
|
need_cap_net_bind_service = 1;
|
||||||
need_cap_net_admin = 1;
|
need_cap_net_raw = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ int main (int argc, char **argv)
|
|||||||
if (option_bool(OPT_UBUS))
|
if (option_bool(OPT_UBUS))
|
||||||
{
|
{
|
||||||
need_cap_net_bind_service = 1;
|
need_cap_net_bind_service = 1;
|
||||||
need_cap_net_admin = 1;
|
need_cap_net_raw = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user