summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix sorting of 'tdnam' keyword in keyword list.julian2007-10-281-2/+1
|
* Move towards more explicit support for various network protocol stacksrwatson2007-10-2817-87/+421
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the TrustedBSD MAC Framework: - Add mac_atalk.c and add explicit entry point mac_netatalk_aarp_send() for AARP packet labeling, rather than using a generic link layer entry point. - Add mac_inet6.c and add explicit entry point mac_netinet6_nd6_send() for ND6 packet labeling, rather than using a generic link layer entry point. - Add expliict entry point mac_netinet_arp_send() for ARP packet labeling, and mac_netinet_igmp_send() for IGMP packet labeling, rather than using a generic link layer entry point. - Remove previous genering link layer entry point, mac_mbuf_create_linklayer() as it is no longer used. - Add implementations of new entry points to various policies, largely by replicating the existing link layer entry point for them; remove old link layer entry point implementation. - Make MAC_IFNET_LOCK(), MAC_IFNET_UNLOCK(), and mac_ifnet_mtx global to the MAC Framework rather than static to mac_net.c as it is now needed outside of mac_net.c. Obtained from: TrustedBSD Project
* Perform explicit label type checks for externalize entry points, rather thanrwatson2007-10-281-10/+70
| | | | | | a generic initialized test. Obtained from: TrustedBSD Project
* Actually the keyword tells network.subr to launch wpa_supplicant on themiwi2007-10-281-2/+4
| | | | | | | | | | | selected interface. wpa_supplicant does not only handle WPA authentication but also EAP/LEAP as well as WEP encryption or no encryption at all. The patch clarifies this. PR: 117046 Submitted by: lme Reviewed by: bruffer Approved by: jkois (mentor)
* Correct, add or improve attributions for, and add to quotations fromdougb2007-10-281-9/+19
| | | | | | "The Wizard of Oz" One duplicate was also removed that wasn't the right quote anyway
* When skipping input data, don't overflow a 32-bit size_t.kientzle2007-10-271-1/+1
| | | | | | | | | | | | | | This can only happen on 32-bit systems when you're reading an uncompressed archive and the skip request is an exact multiple of 4G (e.g., skipping a tar entry with an 8G body). The symptom is that the read_ahead() ends up returning zero bytes, and the extraction stops with a premature end-of-file. Using '1' here is more correct anyway, as it allows read_ahead() to function opportunistically and minimize copying. MFC after: 5 days
* Micro-optimization of prev. commit, changeache2007-10-271-1/+1
| | | | (_c < 0 || _c >= 128) to (_c & ~0x7F)
* Make sure we are incrementing the read count for each audit pipe read.csjp2007-10-271-0/+1
| | | | MFC after: 1 week
* Don't return an error from resume() if execution of _DIS fails for somejhb2007-10-271-3/+4
| | | | | | | reason (not all BIOSen have _DIS methods for all link devices for example). This matches the behavior of attach() with respect to _DIS as well. Submitted by: njl
* Change the roundrobin implementation in the 4BSD scheduler to trigger ajhb2007-10-271-29/+8
| | | | | | | | | | | | | | userland preemption directly from hardclock() via sched_clock() when a thread uses up a full quantum instead of using a periodic timeout to cause a userland preemption every so often. This fixes a potential deadlock when IPI_PREEMPTION isn't enabled where softclock blocks on a lock held by a thread pinned or bound to another CPU. The current thread on that CPU will never be preempted while softclock is blocked. Note that ULE already drives its round-robin userland preemption from sched_clock() as well and always enables IPI_PREEMPT. MFC after: 1 week
* o Fix indentation. No functional changes.maxim2007-10-271-10/+10
|
* Make the examine command honor db_pager_quit so you can use 'q' or 'x'jhb2007-10-271-1/+1
| | | | | | at the pager prompt to abort an examine command that spans multiple pages. MFC after: 1 week
* Add a comment explaining why disc(4) bears the IFF_LOOPBACK flag.yar2007-10-271-0/+10
| | | | | It should be the final follow-up to an old yet unfinished discussion on whether IFF_LOOPBACK is necessary for disc(4) and why.
* Allow the shell used by make(1) to be changed early via theyar2007-10-271-0/+5
| | | | | | | | __MAKE_SHELL variable. This feature isn't supposed to be in wide use, but it's needed now to make `installworld' independent of the stock binaries and libs so that radical ABI changes can go in safely. Reviewed by: ru
* if_loop doesn't need to keep the list of lo(4) interfaces. Todayyar2007-10-271-12/+0
| | | | | | | a private softc list is needed neither for tracking clones in general nor for destroying all clones before the module unload -- if_clone takes care of all that. (Note that some other interface drivers do need a softc list to be able to scan it for their private purposes.)
* Add some essential tools to rescue(8) in order to make ityar2007-10-271-1/+10
| | | | | | | | | | | | | | | | | | | | a versatile emergency tool: o sed(1) as a multi-purpose text filter -- can do grep's job and much more. o head(1), tail(1), and tee(1) as idiomatic text filters. o mt(1) to control tape drives (PR misc/98383). o chown(8) aka chgrp(8) to complement the ch* subset. o pkill(1) aka pgrep(1) to control running processes easily and thus to be able to recover from a serious problem or a fatal typo in an otherwise live system w/o a reboot. (It also deserves adding to rescue(8) for its having triggered a latent bug in crunchgen(1), but we had better add a regression test for that. :-) The resulting change in rescue(8) size has the following order of magnitude on i386: 3787656 - 3727872 = 59784, i.e. just a tad. Discussed on: -hackers (I seem to have wearied all opponents :-) PR: misc/98383
* Add the following mount options to the nfs_opts array:rodrigc2007-10-271-1/+4
| | | | | | | | | | | | | noatime, noexec, suiddir, nosuid, nosymfollow, union, noclusterr, noclusterw, multilabel, acls, force, update, async. These options correspond to MOPT_STDOPTS, MOPT_FORCE, MOPT_UPDATE, and MOPT_ASYNC. Currently, mount_nfs converts these "-o" options from strings to MNT_ flags via getmntopts(), and passes the flags from userspace to the kernel. This change will allow us in future to pass these mount options as strings directly to the kernel via nmount() when doing NFS mounts.
* Include <stdlib.h> for the right prototype for exit(3).yar2007-10-271-0/+1
|
* Remove duplicate "union" from ext2_opts.rodrigc2007-10-271-1/+1
| | | | Noticed by: bde
* Set the program name if the crunched program is selected throughyar2007-10-271-0/+5
| | | | | | | | | | | | argv[1] to mimic crt0 behaviour. Do the job by a direct assignment to __progname in order to stay compatible with NetBSD, whose setprogname() is a deliberate no-op. The reason for this change is that some programs (usually those imported from NetBSD) use getprogname() to distinguish between their aliases. (See pkill aka pgrep for example.) This change can be useful, and applicable, to NetBSD, too.
* In nmount(), if MNT_ROOT is in the mount flags, filter itrodrigc2007-10-271-4/+13
| | | | | | | | | | | | | | | | out instead of returning an error. (1) This makes the behavior consistent with mount(2). (2) This makes update mounts on the root file system work properly. (3) The explicit checks for MNT_ROOTFS in src/sbin/fsck_ffs/main.c and src/usr.sbin/mountd/mountd.c which were put in to eliminate errors during update mounts on the root file system can be removed. The only place were MNT_ROOTFS can be validly set is inside the kernel, i.e. with vfs_mountroot_try(). Reviewed by: phk MFC after: 3 days
* fix buildsam2007-10-271-0/+1
|
* Don't destroy an ACPI device_t for a PCI device and reassign the ACPIjhb2007-10-271-2/+13
| | | | | | | | | | handle to the PCI device_t if the ACPI device_t is already attached to a driver. This happens on the Tablet TC1000 which for some reason includes two PCI-ISA bridges and treats the second bridge as an ACPI system resource device. Reviewed by: njl (a while ago) MFC after: 3 days
* Don't test the APIC flag in the cpuid features for amd64 to see if ajhb2007-10-271-4/+0
| | | | | | | local APIC is present or not. All amd64 CPUs have a local APIC and some BIOSen don't set the CPUID_APIC flag. MFC after: 1 week
* Missed in the previous commit to this file:jhb2007-10-271-0/+3
| | | | | | Actually support the new HT capability type from HT 2.00b. MFC after: 3 days
* Don't always re-route IRQs on resume. If this link hasn't been used, thenjhb2007-10-271-1/+16
| | | | | | disable it with _DIS rather than assigning it an IRQ on resume. MFC after: 1 week
* Bump up the limit for when to print the resources for a given resourcejhb2007-10-271-1/+1
| | | | | | | manager in hex vs decimal to 1000 from 100 so that IRQs are printed in decimal. MFC after: 3 days
* Use the correct variable to check for a malloc failing. This fixes asimon2007-10-271-1/+1
| | | | | case where mountd would fail to start with "out of memory" logged to syslog.
* Give each posixsem MAC Framework entry point its own counter and test caserwatson2007-10-271-9/+74
| | | | | | | in the mac_test policy, rather than sharing a single function for all of the access control checks. Obtained from: TrustedBSD Project
* Small improvement for __isctype(): don't use __mb_sb_limit butache2007-10-271-1/+1
| | | | | hardcode 128 here instead, since default locale never define anything above 127 char.
* Add support for the pre-exisiting module shutdoen handshake.julian2007-10-271-7/+6
| | | | Fix some comments.
* rename the process to 'idle' and 'intr' as per jhb.julian2007-10-272-4/+4
|
* Initialise the initial process pointer to NULL so that we know we don'tjulian2007-10-271-1/+1
| | | | | | | have an idle process yet. I'm guessing that on my system this was always 0 already. found by: Ed Schouten
* Change vm_page_cache_transfer() such that it does not transfer pagesalc2007-10-271-10/+20
| | | | | | | | | that would have an offset beyond the end of the target object. Such pages should remain in the source object. MFC after: 3 days Diagnosed and reviewed by: Kostik Belousov Reported and tested by: Peter Holm
* If kthread_exit() is called on the last kthread in a kproc, thenjulian2007-10-261-0/+6
| | | | | all the work in kproc_exit must be done. We don't actually have a user of this yet but why leave it to chance.
* if one changes a function's arguments, one must also change the callers.julian2007-10-261-2/+2
|
* Update comment following MAC Framework entry point renaming andrwatson2007-10-261-1/+6
| | | | | | reorganization. Obtained from: TrustedBSD Project
* Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE isjhb2007-10-264-4/+5
| | | | | | | | defined. This lets each boot program choose which version of cgbase() it wants to use rather than forcing ufsread.c to have that knowledge. MFC after: 1 week Discussed with: imp
* Remap and virtualize mixer controls for HP nx6110 withariff2007-10-261-2/+26
| | | | | | | | | | AD1981B AC97 codec, unifying master volume control. * Remap "phout" --> SOUND_MIXER_VOLUME (internal speakers) * Virtual "vol" --> { "phout", "ogain" (headphone) } Tested by: Frederic Chardon MFC after: 3 days
* Enable headphone jack-sense for HP nx6100 with AD1981B AC'97 codec,ariff2007-10-261-0/+1
| | | | | | | automuting internal speakers. Tested by: Frederic Chardon MFC after: 3 days
* oops, over optimised and broke non-SMP buildsjulian2007-10-261-1/+3
|
* - Add myself as a new doc/www committer.miwi2007-10-261-0/+1
| | | | Approved by: jkois (mentor)
* kthread_exit needs no stinkin argument.julian2007-10-262-3/+6
|
* Doc police fixesjulian2007-10-263-64/+97
| | | | thanks to: ru@
* style(9)obrien2007-10-261-11/+13
|
* Document the '-P pidfile' command line argument.simon2007-10-261-1/+5
| | | | | | PR: docs/116658 Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 3 days
* Add . to the include path so that we follow the 'machine' symlink we createjhb2007-10-261-1/+1
| | | | | | during depend on amd64. Reported by: rwatson
* Aparrently MACXOCOMLEN exisrts only on my machinejulian2007-10-261-1/+1
|
* The arm boot code uses this function as well. Redefining cgbase()imp2007-10-261-1/+1
| | | | | | | | saves about 500 bytes in the boot code. While the AT91RM9200 has 12k of space for the boot loader, which is more than i386's 8k, the code generated by gcc is a bit bigger. I've had this in p4 for about two years now.
* Forced commit:jkois2007-10-260-0/+0
| | | | | - Note that my last commit was discussed with remko@. - Note that my first mentee will be miwi@.
OpenPOWER on IntegriCloud