* [PATCH] Add capability for port in restricted range.
@ 2021-06-29 16:07 Michael Johnson
2021-06-29 16:44 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Michael Johnson @ 2021-06-29 16:07 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
This fixes an issue where the udp port was not being opened due to a
permission denied error. The result of this was the dhcp client would
fail to send the renewal request and so the dhcp lease would expire.
The addition of the CAP_NET_BIND_SERVICE capability allows the service
to open sockets in the restricted port range (<1024) which is required
for dhcp.
---
src/iwd.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/iwd.service.in b/src/iwd.service.in
index 96e4abac..ab0a5da7 100644
--- a/src/iwd.service.in
+++ b/src/iwd.service.in
@@ -11,7 +11,7 @@ ExecStart=@libexecdir@/iwd
NotifyAccess=main
LimitNPROC=1
Restart=on-failure
-CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
PrivateTmp=true
NoNewPrivileges=true
DevicePolicy=closed
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add capability for port in restricted range.
2021-06-29 16:07 [PATCH] Add capability for port in restricted range Michael Johnson
@ 2021-06-29 16:44 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-06-29 16:44 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
Hi Michael,
On 6/29/21 11:07 AM, Michael Johnson wrote:
> This fixes an issue where the udp port was not being opened due to a
> permission denied error. The result of this was the dhcp client would
> fail to send the renewal request and so the dhcp lease would expire.
>
> The addition of the CAP_NET_BIND_SERVICE capability allows the service
> to open sockets in the restricted port range (<1024) which is required
> for dhcp.
> ---
> src/iwd.service.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-29 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 16:07 [PATCH] Add capability for port in restricted range Michael Johnson
2021-06-29 16:44 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.