summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_pcb.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-04-21 18:14:04 +0000
committerrwatson <rwatson@FreeBSD.org>2007-04-21 18:14:04 +0000
commit3df166efbcd71e69ee943f659199f3a930a39144 (patch)
tree46e03de69d5793409f6060fd4799a17367acd4f3 /sys/netinet6/in6_pcb.c
parent32f12b60cc993453e0419d55699f883edd7feeb5 (diff)
downloadFreeBSD-src-3df166efbcd71e69ee943f659199f3a930a39144.zip
FreeBSD-src-3df166efbcd71e69ee943f659199f3a930a39144.tar.gz
Teach netinet6 to use PRIV_NETINET_REUSEPORT.
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-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