summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add verbage on various failure cases to match the /dev/pci interface.jmg2003-06-231-6/+15
|
* cleanup /dev/pci code some:jmg2003-06-231-54/+20
| | | | | | | | | read permision only required for listing, read/write required for read/write to registers fix a possible memory leak clean up error handling a bit Reviewed by: silence
* Redesign the externalization APIs from the MAC Framework torwatson2003-06-2318-547/+298
| | | | | | | | | | | | | | | | | | | | | | | | | the MAC policy modules to improve robustness against C string bugs and vulnerabilities. Following these revisions, all string construction of labels for export to userspace (or elsewhere) is performed using the sbuf API, which prevents the consumer from having to perform laborious and intricate pointer and buffer checks. This substantially simplifies the externalization logic, both at the MAC Framework level, and in individual policies; this becomes especially useful when policies export more complex label data, such as with compartments in Biba and MLS. Bundled in here are some other minor fixes associated with externalization: including avoiding malloc while holding the process mutex in mac_lomac, and hence avoid a failure mode when printing labels during a downgrade operation due to the removal of the M_NOWAIT case. This has been running in the MAC development tree for about three weeks without problems. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add the date of Turing's death.grog2003-06-231-1/+2
| | | | | Change the entry for Turing's birthday to be the same as in calendar.birthday. This enables cron jobs to uniq(1) the entry.
* Prefer the vop_rmextattr() vnode operation for removing extendedrwatson2003-06-223-5/+12
| | | | | | | | | attributes from objects over vop_setextattr() with a NULL uio; if the file system doesn't support the vop_rmextattr() method, fall back to the vop_setextattr() method. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Expose vop_rmextattr as an explicit operation at the vnode operationrwatson2003-06-221-0/+11
| | | | | | | | interface, rather than relying on a NULL uio for the deletion operation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add an explicit credential argument to alq_open() to allow the caller torwatson2003-06-223-6/+10
| | | | | | | | | | | specify what credential to use when authorizing vn_open() and later write operations, rather than curthread->td_ucred. When writing KTR traces to an ALQ, specify the credential of the thread generating the sysctl request. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Do the upgrade checks quietly.ru2003-06-221-2/+2
|
* Maintain a lock on the vm object of interest throughout vm_fault(),alc2003-06-224-12/+15
| | | | | | releasing the lock only if we are about to sleep (e.g., vm_pager_get_pages() or vm_pager_has_pages()). If we sleep, we have marked the vm object with the paging-in-progress flag.
* Don't check the state of the vnode interlock if the specification saystruckman2003-06-221-1/+7
| | | | | | | that the lock should not be checked. Skip the lock assertion checks for *vpp or any other pointer to a vnode pointer if vpp (or equivalent) is NULL.
* Protect against .depend file somewhere else in the .PATH.ru2003-06-221-37/+9
| | | | Also consolidate building rules for special files.
* Add support for multiple values and ranges for the "iplen", "ipttl",luigi2003-06-223-41/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | "ipid" options. This feature has been requested by several users. On passing, fix some minor bugs in the parser. This change is fully backward compatible so if you have an old /sbin/ipfw and a new kernel you are not in trouble (but you need to update /sbin/ipfw if you want to use the new features). Document the changes in the manpage. Now you can write things like ipfw add skipto 1000 iplen 0-500 which some people were asking to give preferential treatment to short packets. The 'MFC after' is just set as a reminder, because I still need to merge the Alpha/Sparc64 fixes for ipfw2 (which unfortunately change the size of certain kernel structures; not that it matters a lot since ipfw2 is entirely optional and not the default...) PR: bin/48015 MFC after: 1 week
* Forward declare a boatload of structures referenced in the MACrwatson2003-06-222-0/+24
| | | | | | | | | | policy definition structure; this permits policies to reduce their number of gratuitous includes for required for entry points they don't implement. This also facilitates building the MAC Framework on Darwin. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* comment out the 'sshd' entries as the image is now 1460KBluigi2003-06-221-2/+2
| | | | | | | | | | | | and does not fit into a floppy anymore (1403kb available). There is not much you can do now except bumping up the image size (by uncommenting the "fd_size=2880" line in ./config), at which point you can uncomment sshd, the associated library, and all the good stuff such as tcpdump and natd and ppp that you might want on such a box. A similar change should be applied to other picobsd image types.
* Make this compile again: we need to specify a scheduler,luigi2003-06-221-2/+3
| | | | | | and remove the count for devices "sc" and "atkbdc" This change does not apply to RELENG_4.
* Move KERNBASE to -2GB.simokawa2003-06-221-1/+1
| | | | Currently, we cannot increase KVA more than 2GB.
* - Allow access to direct mapped region via /dev/kmem. This makessimokawa2003-06-221-13/+16
| | | | | 'netstat -r' work. - Use direct map for /dev/mem.
* - Allocate a new PD Table if kernel grows beyond 1GB boundary.simokawa2003-06-221-37/+21
| | | | | | Reviewed by: peter - Use direct map in pmap_mapdev().
* Remove 256 unit limit, there is no evil minor number encoding tophk2003-06-221-2/+0
| | | | | | deal with any more. Spotted by: "Darren Freestone" <df@cops.org>
* FreeBSD now has the locale(1) utility.ru2003-06-221-2/+4
|
* Remove argument names from a function declaration.dwmalone2003-06-221-1/+1
| | | | Reviewed by: phk
* Allow installkernel.debug and reinstallkernel.debug.simokawa2003-06-222-4/+9
|
* Add a f_vnode field to struct file.phk2003-06-2229-94/+105
| | | | | | | | | | | | Several of the subtypes have an associated vnode which is used for stuff like the f*() functions. By giving the vnode a speparate field, a number of checks for the specific subtype can be replaced simply with a check for f_vnode != NULL, and we can later free f_data up to subtype specific use. At this point in time, f_data still points to the vnode, so any code I might have overlooked will still work.
* Hook locale(1) to buildphantom2003-06-221-0/+1
|
* document 'list' keyword & fix few typosphantom2003-06-221-3/+7
|
* Add FreeBSD specific keyword 'list' implementation. 'locale -k list' canphantom2003-06-221-97/+138
| | | | be used to retrieve list of all available keywords now.
* Add WARNSphantom2003-06-221-0/+1
|
* support saving both user/group and permissions on symlinks (from PR)jmg2003-06-221-13/+20
| | | | | | | | also fix a slight bogon that assumed an fd of 0 was not valid. Changed it to be -1. PR: bin/25017 Submitted by: Martin Kammerhofer
* Add ID for VT8233A.mdodd2003-06-221-0/+2
| | | | | PR: i386/38299 Submitted by: Rob Schulhof <rrs@there.net>
* Re-enabled PCI irq routing on pc98.nyan2003-06-221-1/+1
|
* - Set close on exec flag for device file descriptors.mdodd2003-06-221-0/+11
| | | | | | | - Reset signal handlers in event_cmd_exec_act(). PR: i386/35182 Submitted by: Daniel O'Connor <darius@dons.net.au>
* As vm_fault() descends the chain of backing objects, set paging-in-alc2003-06-221-8/+8
| | | | progress on the next object before clearing it on the current object.
* - Don't ignore SIGTERM.mdodd2003-06-222-4/+20
| | | | | | | | - Add a command line switch to trigger POWERSTATECHANGE actions on un-reported power state changes. PR: i386/32251 Submitted by: Walter C. Pelissero <walter@pelissero.org>
* Implement a loader tunable/sysctl to allow the user to request thatmdodd2003-06-221-0/+8
| | | | | | | the APM driver byte-swap battery time values. (For broken laptops.) PR: i386/42439 Submitted by: Bruce M Simpson <bms@spc.org>
* When DDB is active, always send printf() output directly to theiedowse2003-06-221-1/+5
| | | | | | console, even if there is a TIOCCONS console tty. We were already doing this after a panic, but it's also useful when entering DDB for some other reason too.
* Use a new message buffer `consmsgbuf' to forward messages to aiedowse2003-06-224-16/+89
| | | | | | | | | | | | | | | TIOCCONS console (e.g. xconsole) via a timeout routine instead of calling into the tty code directly from printf(). This fixes a number of cases where calling printf() at the wrong time (such as with locks held) would cause a panic if xconsole is running. The TIOCCONS message buffer is 8k in size by default, but this can be changed with the kern.consmsgbuf_size sysctl. By default, messages are checked for 5 times per second. The timer runs and the buffer memory remains allocated only at times when a TIOCCONS console is active. Discussed on: freebsd-arch
* Complete the vm object locking in vm_object_backing_scan(); specifically,alc2003-06-221-5/+12
| | | | | deal with the case where we need to sleep on a busy page with two vm object locks held.
* use a REG macro that was already defined.jmg2003-06-221-3/+10
| | | | | | | | Reorder how the pci probing in handled. before adding devices, check to see if the slot is a multi-function device to see if we should probe all the functions. Original idea by: imp
* Replace the code for reading and writing the kernel message bufferiedowse2003-06-226-119/+296
| | | | | | | | | | | | | | | | | with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides the implementation details from callers. The new code uses a kind of sequence number to represend the current read and write positions in the buffer. This approach (suggested mainly by bde) permits the read and write pointers to be maintained separately, which reduces the number of atomic operations that are required. The "mostly reentrant" above refers to the way that while it is now always safe to have any number of concurrent writers, readers could see the message buffer after a writer has advanced the pointers but before it has witten the new character. Discussed on: freebsd-arch
* add support for peeking at pci busses on UltraSparc systems. This preventsjmg2003-06-225-12/+132
| | | | | | | | | data access errors when trying to read/write to non-existant PCI devices. fix the psycho bridge to use peek for probing devices. This no longer fakes it if the OFW node doesn't exist (and the reg == 0). Reviewed by: jake, tmm
* Make some style and white-space changes to the copy-on-write path throughalc2003-06-221-10/+5
| | | | vm_fault(); remove a pointless assignment statement from that path.
* Increase the size of the NFS server hash table to improve performancemckusick2003-06-211-4/+4
| | | | | | | | | | when serving up more than about 32 active files. For details see section 6.3 (pg 111) of Daniel Ellard and Margo Seltzer, ``NFS Tricks and Benchmarking Traps'' in the Proceedings of the Usenix 2003 Freenix Track, June 9-14, 2003 pg 101-114. Obtained from: Daniel Ellard <ellard@eecs.harvard.edu> Sponsored by: DARPA & NAI Labs.
* Add clarifications about the information that ntp_gettime returns.imp2003-06-211-8/+18
| | | | | | | | | | TAI is a timescale, just like UTC. The tai field returns the offset between the two, and isn't really used for precision time keeping. Explain in brief what a positive and a negative leap seconds are. Add some URLs to very useful web pages about time and time keeping for more information on using this API. Reviewed by: phk
* Don't declare unneeded extern variables,yar2003-06-211-2/+0
| | | | leave alone specifying a wrong type for one of them.
* Though manpage says that 0.0.0.0 can be used as HISADDR for gwume2003-06-211-2/+4
| | | | | | | in Framed-Route, it didn't work. Since ncprange_aton() treats 0.0.0.0 and :: as prefixlen=0, we need to care the case. MFC after: 1 week
* Use a do {...} while (0); and a couple of breaks to reduce the levelphk2003-06-211-78/+80
| | | | of indentation a bit.
* Userland spinlocks bad. Sleep locks good.das2003-06-212-10/+16
| | | | | | Use the latter for gdtoa. Requested by: deischen (far too long ago)
* ttyname(3) must return absolute pathnames.phk2003-06-211-2/+8
| | | | Noticed by: kris
* Lock one of the vm objects involved in an optimized copy-on-write fault.alc2003-06-211-2/+5
|
* We don't need two $FreeBSD$'s. Remove the older one.gad2003-06-211-2/+0
|
OpenPOWER on IntegriCloud