Date: Thu, 5 Feb 2009 14:06:09 +0000 (UTC) From: Jamie Gritton <jamie@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/sys send.2 src/sys/kern kern_jail.c src/sys/net if.c rtsock.c src/sys/netinet in.c in_pcb.c raw_ip.c tcp_usrreq.c udp_usrreq.c src/sys/netinet6 in6.c in6_pcb.c in6_src.c raw_ip6.c udp6_usrreq.c Message-ID: <200902051410.n15EAN8O048300@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jamie 2009-02-05 14:06:09 UTC FreeBSD src repository Modified files: lib/libc/sys send.2 sys/kern kern_jail.c sys/net if.c rtsock.c sys/netinet in.c in_pcb.c raw_ip.c tcp_usrreq.c udp_usrreq.c sys/netinet6 in6.c in6_pcb.c in6_src.c raw_ip6.c udp6_usrreq.c Log: SVN rev 188144 on 2009-02-05 14:06:09Z by jamie Standardize the various prison_foo_ip[46] functions and prison_if to return zero on success and an error code otherwise. The possible errors are EADDRNOTAVAIL if an address being checked for doesn't match the prison, and EAFNOSUPPORT if the prison doesn't have any addresses in that address family. For most callers of these functions, use the returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or EINVAL. Always include a jailed() check in these functions, where a non-jailed cred always returns success (and makes no changes). Remove the explicit jailed() checks that preceded many of the function calls. Approved by: bz (mentor) Revision Changes Path 1.37 +2 -2 src/lib/libc/sys/send.2 1.94 +74 -70 src/sys/kern/kern_jail.c 1.307 +1 -2 src/sys/net/if.c 1.166 +15 -14 src/sys/net/rtsock.c 1.120 +4 -5 src/sys/netinet/in.c 1.241 +28 -29 src/sys/netinet/in_pcb.c 1.205 +17 -20 src/sys/netinet/raw_ip.c 1.181 +5 -8 src/sys/netinet/tcp_usrreq.c 1.248 +5 -5 src/sys/netinet/udp_usrreq.c 1.99 +4 -5 src/sys/netinet6/in6.c 1.108 +16 -18 src/sys/netinet6/in6_pcb.c 1.66 +11 -12 src/sys/netinet6/in6_src.c 1.100 +7 -11 src/sys/netinet6/raw_ip6.c 1.106 +6 -10 src/sys/netinet6/udp6_usrreq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902051410.n15EAN8O048300>