opnsense-src/lib/libc
Jamie Gritton b89e82dd87 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)
2009-02-05 14:06:09 +00:00
..
amd64 Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4. 2008-11-09 10:45:13 +00:00
arm Add support for the FPA floating-point format on ARM. The 2008-12-23 22:20:59 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db - Remove superfluous comment 2009-01-30 15:28:35 +00:00
gdtoa Unbreak the build for arm and powerpc. 2008-04-12 14:53:52 +00:00
gen Update the description of KERN_PROC. 2009-01-28 15:21:38 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 On i386, the primary function that SYSCALL() generates is with the 2008-11-15 22:23:07 +00:00
ia64 Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4. 2008-11-09 10:45:13 +00:00
include Add support for the FPA floating-point format on ARM. The 2008-12-23 22:20:59 +00:00
inet Merge the resolver part of BIND 9.4.3 into HEAD. 2008-12-14 19:39:53 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale Change dstp to be const and remove bogus cast. 2009-01-15 20:45:59 +00:00
mips Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4. 2008-11-09 10:45:13 +00:00
nameser This commit was generated by cvs2svn to compensate for changes in r174223, 2007-12-03 15:07:58 +00:00
net - forgot to bump a date 2009-01-06 13:10:15 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e Replace the non-standard disclaimer with the standard one from /COPYRIGHT 2008-11-04 00:20:43 +00:00
powerpc Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4. 2008-11-09 10:45:13 +00:00
quad Fix a typo that prevented the quad symbols from being exported 2007-07-06 13:42:24 +00:00
regex Add two example regexps: (1) one for matching all the characters 2008-09-05 17:41:20 +00:00
resolv Merge the resolver part of BIND 9.4.3 into HEAD. 2008-12-14 19:39:53 +00:00
rpc Fix async mode (required for ypbind in manycast mode). 2008-09-15 14:02:49 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Provide a type for the argument. 2009-02-02 21:51:52 +00:00
stdio Better wording for clearing EOF indicator. 2009-01-28 14:38:41 +00:00
stdlib Fix a lock order reversal bug that could cause deadlock during fork(2). 2008-12-01 10:20:59 +00:00
stdtime Pass a pointer to warn2 so the warn2 == IN_ALL would not be an 2008-10-30 00:19:19 +00:00
string Fix the functions to match prototypes. The K&R definitions differ 2009-02-03 20:25:36 +00:00
sys Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
uuid Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbols 2008-09-19 15:52:56 +00:00
xdr Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
yp Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
Makefile Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
Versions.def Keep versions on a dependency chain to exclude even remote possiblity 2008-05-07 15:39:34 +00:00