summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reorder a calculation in sbreserve so that it does not overflowsilby2002-01-062-2/+6
| | | | | | | with multi-megabyte socket buffer sizes. PR: 7420 MFC after: 3 weeks
* Merge the changes in the English version (1.247 --> 1.248).kuriyama2002-01-061-2/+5
|
* Avoid reentrantly sending on the same socket, which causes a kernel panic.archie2002-01-061-0/+9
|
* - Teach SIGIO code to use cr_cansignal() instead of a custom CANSIGIO()rwatson2002-01-061-13/+3
| | | | | | | | | | | | | | | | | | | macro. As a result, mandatory signal delivery policies will be applied consistently across the kernel. - Note that this subtly changes the protection semantics, and we should watch out for any resulting breakage. Previously, delivery of SIGIO in this circumstance was limited to situations where the subject was privileged, or where one of the subject's (ruid, euid) matched one of the object's (ruid, euid). In the new scenario, subject (ruid, euid) are matched against the object's (ruid, svuid), and the object uid's must be a subset of the subject uid's. Likewise, jail now affects delivery, and special handling for P_SUGID of the object is present. This change can always be reversed or tweaked if it proves to disrupt application behavior substantially. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* - Push much of the logic for p_cansignal() behind cr_cansignal, whichrwatson2002-01-061-30/+45
| | | | | | | | | | | | | | | | authorized based on a subject credential rather than a subject process. This will permit the same logic to be reused in situations where only the credential generating the signal is available, such as in the delivery of SIGIO. - Because of two clauses, the automatic success against curproc, and the session semantics for SIGCONT, not all logic can be pushed into cr_cansignal(), but those cases should not apply for most other consumers of cr_cansignal(). - This brings the base system inter-process authorization code more into line with the MAC implementation. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Release text vnode in exit() rather than wait(). Occasionallydwmalone2002-01-051-8/+8
| | | | | | | | | fifesystem problems could prevent the release from completing and this could result in init being blocked indefinitely. This was looked over by Matt ages ago. Approved by: dillon
* Add a new `SECURITY CONSIDERATIONS' section. Sample code similar tochris2002-01-051-0/+63
| | | | | | | | | the first revision of strcpy(3)'s section is included, but should be removed as the Security Architecture document is committed and completed. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Include a section cross-reference to `EXAMPLES' in `SECURITYchris2002-01-051-1/+3
| | | | | | | CONSIDERATIONS' as a source for relevant sample code. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove the example from SECURITY CONSIDERATIONS. This is mostlychris2002-01-051-54/+0
| | | | | | | duplicated code from EXAMPLES. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* As discussed with Bruce Evans and Kirk McKusick:chris2002-01-053-202/+143
| | | | | | | | | o Combine ufs.7 and ffs.7 into a single ffs.7 man page. o Remove all references to `ufs' as a file system. o Proper (lack of) capitalization for `ffs'. Obtained from: TrustedBSD Project Sposnored by: DARPA, NAI Labs
* Put -Wno-uninitialized at the end of the warns flags as it may be enabeleddwmalone2002-01-051-3/+5
| | | | | | by several flags (in this case -W and -Wall). Reviewed by: bde
* Be more careful about freeing memory after parsing commands.dwmalone2002-01-051-7/+19
| | | | | | | | Hiroyuki YAMAMORI gave a patch for the EPRT command in the PR below. Problems with the rest of the patch are my fault. PR: 33268 Reviewed by: iedowse, sheldonh
* New (but very overdue) release note: ata(4) 48-bit addressing.bmah2002-01-052-2/+10
| | | | MFC noted: locale renaming.
* Pre-calculate the checksum for multicast packets sourced on afenner2002-01-051-0/+12
| | | | | | multicast router. This is overkill; it should be possible to delay to hardware interfaces and only pre-calculate when forwarding to a tunnel.
* Update Judaic for year 2002. Name Josef as maintainer.dwmalone2002-01-051-187/+209
| | | | | PR: 33389 Submitted by: Josef Grosch <jgrosch@mooseriver.com>
* Fix a bug where the mutex name wasn't always displayed for processes injhb2002-01-051-1/+1
| | | | | | | | SMTX in utils such as ps and top. The KI_CTTY flag was assigned to kinfo_proc->ki_kiflag rather than or'd into the flag, thus clobbering any flags set earlier, including KI_MTXBLOCK. Prodding by: peter
* In the word selection mode don't append newline if the word ends at thesobomax2002-01-051-0/+4
| | | | screen boundary.
* Write the "msinfo" result to stdout instead of stderrsos2002-01-051-2/+2
|
* Put the "mtxname" keyword in alphabetical order (t comes after s) sopeter2002-01-051-1/+1
| | | | that the keyword is recognized.
* Convert a bunch of 1 << PCPU_GET(cpuid) to PCPU_GET(cpumask).peter2002-01-0513-28/+28
|
* Fix forward_roundrobin(). It was mistakenly using the cpu number aspeter2002-01-051-2/+2
| | | | | | | though it was a mask. As a result, we sent AST IPI's to the wrong cpu and/or left out some. Spotted by: jake
* Add a per-cpu variable, cpumask, the preshifted equivalent of 1 << cpuid.peter2002-01-052-1/+3
| | | | We use this around the place a lot.
* Change the preemption code for software interrupt thread schedules andjhb2002-01-0542-144/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mutex releases to not require flags for the cases when preemption is not allowed: The purpose of the MTX_NOSWITCH and SWI_NOSWITCH flags is to prevent switching to a higher priority thread on mutex releease and swi schedule, respectively when that switch is not safe. Now that the critical section API maintains a per-thread nesting count, the kernel can easily check whether or not it should switch without relying on flags from the programmer. This fixes a few bugs in that all current callers of swi_sched() used SWI_NOSWITCH, when in fact, only the ones called from fast interrupt handlers and the swi_sched of softclock needed this flag. Note that to ensure that swi_sched()'s in clock and fast interrupt handlers do not switch, these handlers have to be explicitly wrapped in critical_enter/exit pairs. Presently, just wrapping the handlers is sufficient, but in the future with the fully preemptive kernel, the interrupt must be EOI'd before critical_exit() is called. (critical_exit() can switch due to a deferred preemption in a fully preemptive kernel.) I've tested the changes to the interrupt code on i386 and alpha. I have not tested ia64, but the interrupt code is almost identical to the alpha code, so I expect it will work fine. PowerPC and ARM do not yet have interrupt code in the tree so they shouldn't be broken. Sparc64 is broken, but that's been ok'd by jake and tmm who will be fixing the interrupt code for sparc64 shortly. Reviewed by: peter Tested on: i386, alpha
* Remove brain damaged code in witness_lock(). We could have easilyjhb2002-01-051-16/+3
| | | | | just used PCPU_GET(spinlocks) w/o needing the w_mtx held. It is more correct to just check td_critnest now though.
* Merge the changes in the English version (1.244 --> 1.247).kuriyama2002-01-051-2/+17
|
* Add a new flag '-c' to disable repeated line compression when the outputarchie2002-01-052-2/+13
| | | | | | is a pipe to another program, or, if specified twice, in all cases. PR: bin/32420
* GC unfinished function selected_proc_ipi(). It is a duplicate ofpeter2002-01-051-30/+0
| | | | apic_ipi_singledest() anyway.
* Move initialization of the MKMODULESENV envorinoment to kern.pre.mkimp2002-01-052-14/+15
| | | | | | from kern.post.mk so port makefiles can augment it. Submitted by: nyan
* New release notes: SA-02:01, SA-02:02.bmah2002-01-052-0/+20
|
* Fully catch up to the recent critical section API change. Update thejhb2002-01-042-11/+43
| | | | content of the manpage and document cpu_critical_enter/exit.
* We were right the first time...the HPT372 is an ATA133 controller.bmah2002-01-042-2/+2
| | | | Pointed out by: Kent Stewart <kstewart@owt.com>
* Oops, missed one point where $pwd_mkdb had been used.yar2002-01-041-1/+1
| | | | | Now it should be @pwd_mkdb since we moved to Perl's safe system() not using /bin/sh.
* Minor grammar and punctuation fixesyar2002-01-041-2/+2
| | | | in the SO_ACCEPTFILTER description.
* State clearly that one should call listen(2) on a socketyar2002-01-041-0/+11
| | | | | | at first and try to set an accept_filter(9) on it only after that. Also document errno value that will be set if installing the filter on a non-listening socket.
* o Spelling fix in comment: tcp_ouput -> tcp_outputrwatson2002-01-042-2/+2
|
* Argh...argv->argcguido2002-01-041-1/+1
|
* Fix the coredump that occurs when, from the tfpt prompt, a 'c' command isguido2002-01-041-1/+1
| | | | issued without an argument.
* Regen.sheldonh2002-01-041-126/+378
|
* Install nsmb.conf with mode 0600, since it may be modified to includesheldonh2002-01-041-2/+2
| | | | | | passwords for remote shares. Reported by: Andre Albsmeier <andre@albsmeier.net>
* Import this patch to address user concerns.darrenr2002-01-042-2/+2
| | | | | | | PR: 27615 Submitted by: Andria Thomas <andria@tovaris.com> Approved by: Me. MFC after: 7 days
* Axe a stale comment. Holding sched_lock across both setrunqueue() andjhb2002-01-041-8/+0
| | | | mi_switch() is sufficient.
* Don't turn on RB_CDROM if the rootdev is a BIOS cd device for now as thisjhb2002-01-043-6/+0
| | | | breaks when cdboot is used with an MFS root.
* Throw the $FreeBSD$s back in, properly escaping them.silby2002-01-042-8/+8
|
* Remove $FreeBSD$s from previous commit; perl thinks that they'resilby2002-01-042-4/+4
| | | | something to be interpreted. Urk.
* Add the system default timer engine.tanimura2002-01-042-0/+644
|
* - Provide toggles to show debug messages. Set new sysctl variablestanimura2002-01-0413-374/+882
| | | | | | | | | | | | | | hw.midi.debug and hw.midi.seq.debug to 1 to enable debug log. - Make debug messages human-frendly. - Implement /dev/music. - Add a timer engine required by /dev/music. - Fix nonblocking I/O. - Fix the numbering of midi and synth devices.
* Do not derefer null.tanimura2002-01-041-0/+4
| | | | Reviewed by: des
* unbreak -current (at least on my cvsups all today)julian2002-01-031-2/+0
|
* Correct the path for the stable snapshot server.jkh2002-01-032-4/+4
| | | | Noticed by: "Peter Holm" <p_holm@mail.tele.dk>
* Fix (I think) a typo in the hardware list (HPT372 is ATA100 instead ofbmah2002-01-034-4/+4
| | | | | | ATA133?). MFC noted: "more" chipsets supported by ata(4).
OpenPOWER on IntegriCloud