summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2004-07-26 07:24:04 +0000
committercperciva <cperciva@FreeBSD.org>2004-07-26 07:24:04 +0000
commitd9fecc83c80e01cb4e66d1fd0a02e96b1fcbcbc5 (patch)
treee24e86995427678a1313e8f62cc17f84bdcaf82b /sys/netinet6
parent5997e4b6ce7d492b2ccb725239af23a268509c09 (diff)
downloadFreeBSD-src-d9fecc83c80e01cb4e66d1fd0a02e96b1fcbcbc5.zip
FreeBSD-src-d9fecc83c80e01cb4e66d1fd0a02e96b1fcbcbc5.tar.gz
Rename suser_cred()'s PRISON_ROOT flag to SUSER_ALLOWJAIL. This is
somewhat clearer, but more importantly allows for a consistent naming scheme for suser_cred flags. The old name is still defined, but will be removed in a few days (unless I hear any complaints...) Discussed with: rwatson, scottl Requested by: jhb
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index b1a5a71..16a4555 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -187,7 +187,7 @@ in6_pcbbind(inp, nam, cred)
/* GROSS */
if (ntohs(lport) < IPV6PORT_RESERVED &&
- suser_cred(cred, PRISON_ROOT))
+ suser_cred(cred, SUSER_ALLOWJAIL))
return (EACCES);
if (so->so_cred->cr_uid != 0 &&
!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {
OpenPOWER on IntegriCloud