From b82c67405ffac8b10138bb77b565cd0c93f3dee6 Mon Sep 17 00:00:00 2001 From: yscialom Date: Sat, 9 Jul 2022 17:21:56 +0200 Subject: [PATCH] Fix #4714: correctly check thread can bind to privileged ports --- internal/aghnet/net_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/aghnet/net_linux.go b/internal/aghnet/net_linux.go index 148abe1f982..ed915ec8269 100644 --- a/internal/aghnet/net_linux.go +++ b/internal/aghnet/net_linux.go @@ -24,7 +24,7 @@ const dhcpcdConf = "etc/dhcpcd.conf" func canBindPrivilegedPorts() (can bool, err error) { cnbs, err := unix.PrctlRetInt( unix.PR_CAP_AMBIENT, - unix.PR_CAP_AMBIENT_IS_SET, + unix.PR_CAP_AMBIENT_RAISE, unix.CAP_NET_BIND_SERVICE, 0, 0,