diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-04-21 18:14:04 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-04-21 18:14:04 +0000 |
commit | 3df166efbcd71e69ee943f659199f3a930a39144 (patch) | |
tree | 46e03de69d5793409f6060fd4799a17367acd4f3 /sys/netinet6 | |
parent | 32f12b60cc993453e0419d55699f883edd7feeb5 (diff) | |
download | FreeBSD-src-3df166efbcd71e69ee943f659199f3a930a39144.zip FreeBSD-src-3df166efbcd71e69ee943f659199f3a930a39144.tar.gz |
Teach netinet6 to use PRIV_NETINET_REUSEPORT.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 6 |
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); |