freebsd-nq/sys
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 Improve robustness of NMI handling, for NMIs recognized in kernel 2009-02-03 09:01:45 +00:00
arm Erm... Report the buffer as being bounced even when it's the entire buffer, 2009-02-04 01:14:06 +00:00
boot - Remove superfluous comment 2009-01-30 15:27:04 +00:00
bsm Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
cam There is no need to initialize the variable here. 2009-01-31 17:34:55 +00:00
cddl Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
compat Change some movl's to mov's. Newer GAS no longer accept 'movl' instructions 2009-01-31 11:37:21 +00:00
conf Overhaul regulatory support: 2009-01-28 18:00:22 +00:00
contrib Revert my previous two changes. 2009-01-25 16:52:41 +00:00
crypto Connect padlock(4) to amd64 build for VIA Nano processors. 2009-01-12 19:23:46 +00:00
ddb
dev Fix bm_shutdown() KOBJ method to correspond to return int, as it should. 2009-02-04 22:16:27 +00:00
fs After r186194 the *fs_strategy() functions always return 0. 2009-01-31 18:06:34 +00:00
gdb
geom In g_handleattr(), set bp->bio_completed also for the case 2009-02-03 07:07:13 +00:00
gnu - Eliminate warnings in debug print macros by explicitly converting all 2009-01-18 15:10:46 +00:00
i386 pass in smp_processor_id to identify the cpu in use 2009-02-05 04:00:55 +00:00
ia64 Tweak the ia64 machine check handling code to not register new sysctl nodes 2009-02-04 18:44:29 +00:00
isa Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
kern Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
kgssapi Call svc_freereq() before returning from the service proc. 2008-11-12 15:31:05 +00:00
libkern Add simple locking for the in-kernel iconv code. Translation operations 2008-12-05 21:19:24 +00:00
mips Eliminate the PMAP_INLINE macro. It isn't really used here. If we 2009-01-16 08:38:03 +00:00
modules Fix typo in last commit. 2009-01-28 11:04:27 +00:00
net Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
net80211 When crafting a media setting w/ an auto (non-fixed) rate mask out the 2009-02-03 22:32:26 +00:00
netatalk Remove local variable 'ddp' from DDP's attach and detach routines; they 2009-02-04 20:04:32 +00:00
netgraph Allow unprivileged users to run l2ping(8). 2009-02-04 22:44:09 +00:00
netinet Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
netinet6 Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
netipsec Use NULL rather than 0 when comparing pointers. 2009-01-30 20:17:08 +00:00
netipx Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through 2008-12-11 10:29:35 +00:00
netnatm Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netncp Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netsmb Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. 2008-11-03 14:23:15 +00:00
nfs
nfs4client Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsclient Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsserver Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nlm Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
opencrypto While OpenBSD's crypto/ framework has sha1 and md5 implementations that 2009-01-28 15:31:16 +00:00
pc98 MFi386: 187144 2009-01-15 11:54:31 +00:00
pccard
pci - Add support for 8110SCe part. Some magic registers were taken from 2009-01-20 20:22:28 +00:00
powerpc Add support for the I2S and davbus audio controllers found in Apple PowerPC 2009-01-25 18:20:15 +00:00
rpc Use the correct creds when reconnecting so that we have enough privilege to 2009-02-05 11:48:10 +00:00
security Eliminate the local variable 'ape' in audit_pipe_kqread(), as it's only 2009-02-04 19:56:37 +00:00
sparc64 - Currently the PMAP code is laid out to let the kernel TSB cover the 2009-01-01 14:01:21 +00:00
sun4v Adjust the padding of struct pcpu to r187357. 2009-01-18 13:04:38 +00:00
sys Remove slush space from clists. 2009-02-04 17:10:01 +00:00
tools Remove some unused and broken code that attempted to not invoke locking 2008-11-03 19:57:40 +00:00
ufs Make sure the cdev doesn't go away while the filesystem is still mounted. 2009-01-29 16:47:15 +00:00
vm - Make the keg abstraction more complete. Permit a zone to have multiple 2009-01-25 09:11:24 +00:00
xdr Use the remote address for access control, not the local address. This fixes 2008-11-13 14:36:52 +00:00
xen merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
Makefile