summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Rename mac_check_socket_receive() to mac_check_socket_deliver() so thatrwatson2002-08-1514-43/+43
| | | | | | | | we can use the names _receive() and _send() for the receive() and send() checks. Rename related constants, policy implementations, etc. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Rename mac_check_socket_receive() to mac_check_socket_deliver() so thatrwatson2002-08-159-90/+90
| | | | | | | | | | | | | we can use the names _receive() and _send() for the receive() and send() checks. Rename related constants, policy implementations, etc. PR: Submitted by: Reviewed by: Approved by: Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs MFC after:
* Fix return case for negative namelen by jumping to normal exit processingrwatson2002-08-151-2/+4
| | | | | | rather than immediately returning, or we may not unlock necessary locks. Noticed by: Mike Heffner <mheffner@acm.vt.edu>
* Reset dupack count in header prediction.hsu2002-08-152-0/+2
| | | | | | Follow-on to rev 1.39. Reviewed by: jayanth, Thomas R Henderson <thomas.r.henderson@boeing.com>, silby, dillon
* Kernel support for a dummynet option:luigi2002-08-152-1/+2
| | | | | | | | | | | | | | | | When a pipe or queue has the "noerror" attribute, do not report drops to the caller (ip_output() and friends). (2 lines to implement it, 2 lines to document it.) This will let you simulate losses on the sender side as if they happened in the middle of the network, i.e. with no explicit feedback to the sender. manpage and ipfw2.c changes to follow shortly, together with other ipfw2 changes. Requested by: silby MFC after: 3 days
* On MAC check failure for readdir, use 'goto out' to use the common exitrwatson2002-08-151-1/+1
| | | | | | | | handling, rather than returning directly to prevent leaking of vnode reference/lock. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* It's now sufficient to rely on a nested include of _label.h to make surerwatson2002-08-151-1/+0
| | | | | | | all structures in ip_var.h are defined, so remove include of mac.h. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Perform a nested include of _label.h if #ifdef _KERNEL. This willrwatson2002-08-151-0/+4
| | | | | | | | satisfy consumers of ip_var.h that need a complete definition of struct ipq and don't include mac.h. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Add mac.h -- raw_ip.c was depending on nested inclusion of mac.h whichrwatson2002-08-151-0/+1
| | | | | | | | is no longer present. Pointed out by: bmilekic Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Make m_flags an int instead of a short, this is consistent with thebmilekic2002-08-152-3/+3
| | | | | | | | | type of the 'flags' argument m_getcl() was using anyway; m_extadd() needed to be changed to accept an int instead of a short for 'flags.' This makes things more consistent and also gives us more bits to use for m_flags in the future (we have almost run out). Requested by: sam (Sam Leffler)
* pccbb->cbbimp2002-08-153-4/+4
|
* No longer neededimp2002-08-151-243/+0
|
* pccbb -> cbbimp2002-08-152-2/+3
|
* Rename the pccbb device to cbb.imp2002-08-152-311/+318
|
* Move the symbol firmware loading routines into if_wi.imp2002-08-154-148/+161
| | | | Define some basic firmware downloading commands.
* Fixed 64bit big endian bugs relating to abuse of ioctl argument passing.jake2002-08-151-4/+4
| | | | This makes truss work on sparc64.
* Fix some confusion regarding traps that use mmu globals but don't reallyjake2002-08-151-2/+4
| | | | have any reason to; force alternat globals instead, which is what we want.
* Store the number of itlb and dtlb entries separately; they may be different.jake2002-08-156-20/+29
| | | | | Find the prom node for the boot cpu earlier and store it in the per-cpu area, so that cache_init can be called earlier.
* Improve handling of TX errors. Early reports indicate that thissilby2002-08-154-26/+56
| | | | | | | | | | elimiates the driver lockup problem reported by many. Concepts used were taken from Via's if_fet driver. Verification and implementation were done by Thomas Nystrom. Submitted by: Thomas Nystrom <thn@saeab.se> MFC after: 3 days
* Clean up comments that are no longer relevant.scottl2002-08-151-12/+9
|
* Sync to trustedbsd_mac tree: default to sigsegv rather than copy-on-writerwatson2002-08-159-9/+9
| | | | | | | | | during a label change resulting in an mmap removal. This is "fail stop" behavior, which is preferred, although it offers slightly less transparency. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* return foo -> return (foo)alfred2002-08-151-22/+22
|
* Factor out some ugle code that's shared by udf_readdir and udf_lookup.scottl2002-08-153-246/+239
| | | | | | Significantly de-obfuscate udf_lookup Inspired By: tes@sgi.com
* Document why the has_f00f_bug variable is initialised rather than placed intojmallett2002-08-142-2/+2
| | | | | | the BSS (so that it can be binary-patched). Inspired by: bde
* When talking about c_db_sym_t, mention that it is not just like db_sym_t:jmallett2002-08-141-1/+1
| | | | | | it's const. Inspired by: bde
* Spell kenrel as 'kernel' for consistency with the rest of the universe.jmallett2002-08-142-2/+2
| | | | Inspired by: bde
* Set kernel_vm_end. Panic if we try to grow the kernel.jake2002-08-141-0/+3
|
* Implement the DIOCGSECTORSIZE and DIOCGMEDIASIZE ioctls, and renamejoerg2002-08-141-1/+9
| | | | | | | the DIOCGDINFO ioctl into DIOCGDVIRGIN. This allows the newfs(8) to work on vinum volumes without the now removed -v option. Approved by: grog
* Move to nested include of _label.h instead of mac.h, reducing namespacerwatson2002-08-142-2/+2
| | | | | | | | pollution. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Suggested by: bde
* Move to a nested include of _label.h instead of mac.h in sys/sys/*.hrwatson2002-08-146-14/+8
| | | | | | | | | (Most of the places where mac.h was recursively included from another kernel header file. net/netinet to follow.) Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Suggested by: bde
* - Add the missing td argument to vn_lock that I missed in my last commit.jeff2002-08-131-1/+1
|
* remove spurious printfphk2002-08-131-1/+1
|
* Moved sf_buf_alloc and sf_buf_free function declarations to sys/socketvar.hdg2002-08-133-4/+3
| | | | so that they can be seen by external callers.
* Remove obsolete comment about sf_buf_* functions being static. They weredg2002-08-131-3/+0
| | | | made un-static in rev 1.114.
* Forward define struct iovec instead of includingmux2002-08-131-1/+1
| | | | sys/uio.h and polluting the namespace even more.
* Define 'struct label' in _label.h rather than mac.h, which will permitrwatson2002-08-133-36/+61
| | | | | | | | | | | | | us to reduce namespace pollution by doing a nested include of _label.h rather than mac.h. mac.h contains lots of baggage, whereas _label.h contains much less. A follow-up sweep to change nested inclusion will follow. The problem regarding exporting 'struct label' to userland due to excessive exporting of kernel structures to userland still needs to be resolved. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Suggested by: bde
* mdoc(7) police: Get rid of hard sentence breaks.ru2002-08-131-8/+15
|
* mdoc(7) police: revert unapproved changes in rev. 1.43, added missing markup ↵ru2002-08-131-3/+5
| | | | bits in rev. 1.45.
* MFi386: revisions 1.354 and 1.356.nyan2002-08-131-4/+2
| | | | Remove the mpt driver entry.
* Expand the arguments to ffs_ext{read,write}() to their componentphk2002-08-131-41/+17
| | | | | | | | | parts rather than use vop_{read,write}_args. Access to these functions will ultimately not be available through the "vop_{read,write}+IO_EXT" API but this functionality is retained for debugging purposes for now. Sponsored by: DARPA & NAI Labs.
* Remember to unlock the (optional) vnode in vfs_stdextattrctl(). Failingphk2002-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | to do this made the following script hang: #!/bin/sh set -ex extattrctl start /tmp extattrctl initattr 64 /tmp/EA00 extattrctl enable /tmp user ea00 /tmp/EA00 extattrctl showattr /tmp/EA00 if the filesystem backing /tmp did not support EAs. The real solution is probably to have the extattrctl syscall do the unlocking rather than depend on the filesystem to do it. Considering that extattrctl is going to be made obsolete anyway, this has dogwash priority. Sponsored by: DARPA & NAI Labs.
* Realign columns in DDB's ps output. Don't waste more horizontal space thanphk2002-08-131-9/+9
| | | | necessary.
* Unravel the UFS_EXTATTR incest between FFS and UFS: UFS_EXTATTR is anphk2002-08-132-7/+65
| | | | | | | | | UFS only thing, and FFS should in principle not know if it is enabled or not. This commit cleans ffs_vnops.c for such knowledge, but not ffs_vfsops.c Sponsored by: DARPA and NAI Labs.
* Add a #include for <sys/mount.h>phk2002-08-131-0/+1
|
* Introduce typedefs for the member functions of struct vfsops and employphk2002-08-1312-95/+93
| | | | | | | these in the main filesystems. This does not change the resulting code but makes the source a little bit more grepable. Sponsored by: DARPA and NAI Labs.
* Make SYSVSEM mpsafe. Each semaphore set gets its own lock, howeveralfred2002-08-131-87/+172
| | | | | | | | | | | | | | | there is a global lock over the undo structures because of the way they are managed. Switch to using SLIST instead of rolling our own linked list. Fix several races where a permission check was done before a copyin/copyout, if the copy happened to fault it may have been possible to race for access to a semaphore set that one shouldn't have access to. Requested by: rwatson Tested by: NetBSD regression suite.
* Make SYSVMSG mpsafe. Right now there is a global lock over thealfred2002-08-131-19/+31
| | | | | | | | | | entire subsystem, we could move to per-message queue locks, however the messages themselves seem to come from a global pool and to avoid over-locking this code (locking individual queues, then the global pool) I've opted to just do it this way. Requested by: rwatson Tested by: NetBSD's regression suite.
* - Hold the vnode lock throughout execve.jeff2002-08-138-74/+91
| | | | | - Set VV_TEXT in the top level execve code. - Fixup the image activators to deal with the newly locked vnode.
* o Remove an unnecessary vm_page_flash() from _pmap_unwire_pte_hold().alc2002-08-133-6/+0
| | | | Reviewed by: peter
* - Extend the vnode_free_list_mtx to cover numvnodes and freevnodes. Thisjeff2002-08-131-3/+15
| | | | was done only some of the time before, and now it is uniformly applied.
OpenPOWER on IntegriCloud