summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet6/in6_pcb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 5e7da80..001d5cd 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -194,11 +194,9 @@ in6_pcbbind(inp, nam, cred)
priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT,
SUSER_ALLOWJAIL))
return (EACCES);
- /*
- * XXXRW: What priv to use here?
- */
if (!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr) &&
- suser_cred(so->so_cred, SUSER_ALLOWJAIL) != 0) {
+ priv_check_cred(so->so_cred,
+ PRIV_NETINET_REUSEPORT, SUSER_ALLOWJAIL) != 0) {
t = in6_pcblookup_local(pcbinfo,
&sin6->sin6_addr, lport,
INPLOOKUP_WILDCARD);
OpenPOWER on IntegriCloud