freebsd-dev/sys
Robert Watson 84bdb0837a Correct logic for filling out a "new" label during a credential
change in mac_lomac: if both flags are set on the new label, we
may not need to always fill out the label (only if one flag is
set, not both).  Avoid stomping on a section of the label if we
are in fact modifying both elements.

Because we know that both flags will be set, we don't need to
test whether the range or single are set in later consistency
checks of the range and single -- just test them.

By checking the range of the new vs. the range of the old label
before testing the single against the new range, we implicitly
test that the new single is in the old range.  Document this
with a comment.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-08-21 18:07:52 +00:00
..
alpha - Lock the pte object when performing vm_page_grab(). 2003-08-20 20:12:05 +00:00
amd64 Regen 2003-08-21 03:48:50 +00:00
arm Style sync. 2003-08-03 07:50:19 +00:00
boot FICL doesn't build on PowerPC yet, so disable. 2003-08-16 02:48:20 +00:00
cam Remove all USB quirks that only specify DA_Q_NO_6_BYTE. They are no longer 2003-08-06 17:30:03 +00:00
coda Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
compat Regen 2003-08-21 03:48:50 +00:00
conf Hook up mac_stub to the modules Makefile. 2003-08-21 16:48:39 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r118812, 2003-08-12 04:56:45 +00:00
crypto
ddb Further cleanup <machine/cpu.h> and <machine/md_var.h>: move the MI 2003-08-16 16:57:57 +00:00
dev Sync 2003-08-21 18:05:55 +00:00
fs Add pfs_visible() checks to pfs_getattr() and pfs_getextattr(). This 2003-08-19 10:26:41 +00:00
geom Replace a panic with a .1Hz retry loop. 2003-08-13 12:35:25 +00:00
gnu Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
i4b Undo agressive inlining which GCC previously wisely ignored. 2003-07-23 17:58:41 +00:00
i386 Eliminate a possible race condition for multithreaded applications in 2003-08-19 18:20:34 +00:00
ia64 Regen. 2003-08-21 14:16:41 +00:00
isa Give timecounters a numeric quality field. 2003-08-16 08:23:53 +00:00
isofs/cd9660 Do not call VOP_BMAP() on our own vnodes. 2003-08-17 23:00:30 +00:00
kern Change description of kern.osreldate from "Operating system release date" to 2003-08-21 14:47:08 +00:00
libkern Lock down arc4random so it can be safely called w/o Giant. 2003-08-15 06:34:47 +00:00
modules Hook up mac_stub to the modules Makefile. 2003-08-21 16:48:39 +00:00
net Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
net80211 MFp4 changes to fix locking issues and correct reference 2003-08-19 22:17:04 +00:00
netatalk
netatm The number of prefixes can never be negative so use an u_int for this. 2003-07-29 13:46:43 +00:00
netgraph Add Protocol Independent Multicast protocol. 2003-08-20 22:11:58 +00:00
netinet Before digging into IGMP locking, do a whitespace and prototype cleanup: 2003-08-20 17:32:17 +00:00
netinet6 introduced a flag bit "ND6_IFF_ACCEPT_RTADV" in the nd_ifinfo structure to 2003-08-05 14:57:11 +00:00
netipsec make sure the packets contains a complete inner header 2003-08-13 22:36:24 +00:00
netipx
netkey
netnatm Remove the last vestiges of ATM raw mode. This has not been useful for a 2003-08-06 14:34:38 +00:00
netncp size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
netsmb Reserve space for the trailing null byte in the srvname member of 2003-07-27 11:36:00 +00:00
nfs
nfsclient Remove the magic way of configuring NFS backed swap. 2003-08-15 12:04:02 +00:00
nfsserver
opencrypto
pc98 bandaide to make this build again 2003-08-16 17:22:54 +00:00
pccard Add comment point o2micro people to NEWCARD 2003-08-01 16:10:48 +00:00
pci Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
posix4
powerpc Fixup the ELF branding information to point to the new home of rtld. 2003-08-17 08:08:38 +00:00
rpc
security Correct logic for filling out a "new" label during a credential 2003-08-21 18:07:52 +00:00
sparc64 Lock the pmap's tsb object when performing vm_page_grab() on it. 2003-08-20 06:11:39 +00:00
sys Replace 'OS release date' with 'kernel release date' here, too. 2003-08-21 16:36:54 +00:00
tools
ufs The previous change necessitates the addition of a new #include. Otherwise, 2003-08-18 17:27:08 +00:00
vm Assert that the vm object lock is held in vm_page_alloc(). 2003-08-20 20:24:29 +00:00
Makefile