priv: Use PRIV_NETINET_RESERVEDPORT
authorMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 16:48:07 +0000 (18:48 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 16:48:07 +0000 (18:48 +0200)
sys/netinet6/in6_pcb.c

index 7187834..4b06392 100644 (file)
@@ -202,7 +202,7 @@ in6_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct thread *td)
 
                        /* GROSS */
                        if (ntohs(lport) < IPV6PORT_RESERVED && cred &&
-                           priv_check_cred(cred, PRIV_ROOT, PRISON_ROOT))
+                           priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0))
                                return (EACCES);
                        if (so->so_cred->cr_uid != 0 &&
                            !IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {