diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2004-07-26 07:24:04 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2004-07-26 07:24:04 +0000 |
commit | 56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a (patch) | |
tree | e24e86995427678a1313e8f62cc17f84bdcaf82b /sys/netinet6/in6_pcb.c | |
parent | 726dc81dee1abe2bcaae749a9680a4693a4b451f (diff) | |
download | src-56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a.tar.gz src-56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a.zip |
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
Notes
Notes:
svn path=/head/; revision=132653
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index b1a5a71f7476..16a45556d808 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)) { |