Commit Graph

155684 Commits

Author SHA1 Message Date
elad 9d00fe4640 Fix mdoc (Lt -> Gt). 2007-01-31 10:39:40 +00:00
martin cc56e04922 PR install/35528 from Wouter Schoot: fix typo in install docs 2007-01-31 10:12:28 +00:00
msaitoh 053d47d1f3 add an entry for Willcom WS002IN PHS device(Prolific Technology PL2303X).
PR#35512
2007-01-31 10:11:50 +00:00
mjf 5b48fe33c5 PR kern/35527 - Patch applied, thanks! 2007-01-31 10:09:17 +00:00
msaitoh 597ba6f639 regen 2007-01-31 10:08:53 +00:00
elad c439bcfe43 Add a new scope, the credentials scope, which is internal to the kauth(9)
implementation and meant to be used by security models to hook credential
related operations (init, fork, copy, free -- hooked in kauth_cred_alloc(),
kauth_proc_fork(), kauth_cred_clone(), and kauth_cred_free(), respectively)
and document it.

Add specificdata to credentials, and routines to register/deregister new
"keys", as well as set/get routines. This allows security models to add
their own private data to a kauth_cred_t.

The above two, combined, allow security models to control inheritance of
their own private data in credentials which is a requirement for doing
stuff like, I dunno, capabilities?
2007-01-31 10:08:23 +00:00
msaitoh b7e0d69761 add entries for Prolific Technology's PL2303X 2007-01-31 10:07:31 +00:00
skrll 84371f955a Regen for mjf. Linux didn't work for him. 2007-01-31 10:06:16 +00:00
mjf bfb506d699 Add SHARP WS007SH USB device. 2007-01-31 10:00:03 +00:00
msaitoh 89a3deccf1 Apply OpenBSD's rev. 1.14 via patch:
> remove another Yukon Lite workaround.
2007-01-31 09:57:45 +00:00
msaitoh b70c89dfa7 fix bit definitions for the RX FIFO Flush mode 2007-01-31 09:56:26 +00:00
elad 8b125f4fa5 PR/35524: Brian de Alwis: panic from free in pathname_get
Patch applied, thanks for the report!
2007-01-31 08:29:20 +00:00
martin 6bcac52d39 Apply fix from PR bin/35526 from Xin LI: fix typo in message 2007-01-31 08:23:22 +00:00
plunky defc1075ef This comprises a rewrite, which
- adds a server mode for incoming bluetooth connections
	- does not cfmakeraw the slave tty as this caused problems
	- does not hold open the slave tty as this prevented multiple opens
	- modifies the termios for stdio so that this can be used directly
	  by a user.
2007-01-31 08:12:21 +00:00
mrg 6024cd92c4 update the "bt" description to include "/l" modifier 2007-01-31 02:17:31 +00:00
dogcow 38bd59d0b4 paxctl got moved to usr.sbin, it seems. 2007-01-30 23:47:37 +00:00
wiz 47594a87c9 Add SWFG. 2007-01-30 22:01:13 +00:00
elad a8c0f0c72e Move paxctl from usr.bin/paxctl to usr.sbin/paxctl, and make it an admin
tool (man-page moved from section 1 to section 8).
2007-01-30 19:40:07 +00:00
christos f987814949 include <types.h> 2007-01-30 18:12:48 +00:00
tron 6d2e146fcb "Transvaal" should be capitalized.
Patch provided by David A. Holland in PR misc/35517.
2007-01-30 13:10:49 +00:00
tron 03ffbba348 Correct documentation about ACPI related kernel options.
Patch provided by Joerg Niendorf in PR misc/35514.
2007-01-30 13:01:34 +00:00
msaitoh 1482d8eb6f apply some patches from FreeBSD
o fix device timeout
 o add some workaround
 o TX underrun bug (grr...)
 o and some bugs
2007-01-30 11:58:10 +00:00
msaitoh e7d9c07f9f sync with if_skreg.h rev. 1.41
need more work?
2007-01-30 11:42:06 +00:00
msaitoh 874e8bcee6 sync with OpenBSD-current (many bugfixes, add some devices)
if_msk.c: rev. 1.42
if_mskvar.h rev. 1.3
if_skreg.h rev. 1.41
2007-01-30 11:34:38 +00:00
msaitoh 0f1f665622 regen 2007-01-30 11:32:08 +00:00
msaitoh 05a499893d add some msk devices 2007-01-30 11:31:40 +00:00
freza 4a09a01492 Document that unprotected access to softintr cookie is safe in
softintr_disestablish(), upon request from uebayasi@.
2007-01-30 05:42:24 +00:00
freza 4bf0309687 Protect softintr queues by direct manipulation of PSL_EE because PowerPC
ports have different IPL hierarchies. On macppc, IPL_VM is below IPL_AUDIO
and IPL_SERIAL so the queues got corrupted due to priority inversion.
Also fix a race condition in softintr_schedule() when testing "si_refs > 1",
it can lead to queue corruption and subsequent panic (below). As a side
effect, using PSL_EE directly is faster than going via spl*()/splx().

This is supposed to fix (XXX I don't have the hw):

  Panic: kernel diagnostic assert "si->si_refs > 0" failed: file
  "[...]arch/powerpc/powerpc/softintr.c" line 116

reported for example in:

  http://mail-index.netbsd.org/port-macppc/2007/01/25/0001.html

Discussed with briggs@ and macallan@.
2007-01-30 05:25:15 +00:00
dogcow 8e180a72c2 emasculate debugging mode for the hosttool version of makefs, to avoid various
hairy endian-decoding macros/inlined functions/etc.
2007-01-30 01:46:33 +00:00
gdt 5ff979921c Even though the parent doesn't descend here, it's still convenient to
have a makefile to build the 4 examples at once.
2007-01-30 01:26:58 +00:00
christos a8accd0f06 mips1 does not have the right assembly instructions. 2007-01-30 00:49:15 +00:00
christos db3454e373 powerpc assembly does not work. 2007-01-30 00:48:27 +00:00
christos 03f10a71aa provide non-atomic versions so that things compile for now. 2007-01-30 00:46:52 +00:00
bouyer 53bfe8e81c Drop M_PROMISC before passing the packet to a carp device, for the same
reason it's dropped before passing to bridge: when a vlan interface is
in promisc mode, it will loop the packet back to ether_input() with
M_PROMISC set, and when carp calls ether_input again the flag is still
there and the packet is dropped. If the carp interface doesn't take
the packet M_PROMISC is set just after is needed anyway.
Tested on a box with multiple carp on vlans, no comments about this patch
on tech-net@
2007-01-29 22:13:14 +00:00
christos f8ee9d613d deal with x86_64 build failure. 2007-01-29 17:33:30 +00:00
hannken 4d607243ba Change fstrans enum types to upper case.
No functional change.

From Antti Kantee <pooka@netbsd.org>
2007-01-29 15:42:50 +00:00
tsutsui 1c17a4f65d Fix EEPROM functions for RTL8169SC chips:
rtl81x9.c:
 Increase delay on EEPROM access since EEPROM on RTL8169 based board
 seems to require slower clock. Also use common EE_DELAY() macro.

rtl8169.c:
 Use common rtk_read_eeprom() function to get Ethernet address on
 8169 chips because EEMODE_AUTOLOAD command was a workaround on
 original FreeBSD's driver and it doesn't work on 8169SC.

Problem reported and fix tested by Frank Lorenzen on current-users,
and also tested on 8139C with rtk(4) driver by me.
2007-01-29 12:11:42 +00:00
dyoung ba4e9d5953 In rtw_dequeue(), initialize *mp to NULL before anything else, so
that it is either NULL or a valid mbuf.  Previously, it was possible
for rtw_dequeue() to exit with 0 before initializing *mp.  rtw_start()
would have used whatever trash was in *mp, which would lead to
problems later on.
2007-01-29 07:08:09 +00:00
dyoung 7b077b0223 Cosmetic: whitespace nits. Shorten a staircase. Remove unnecessary
parentheses and casts.  Compare pointers with NULL instead of 0.
bzero -> memset.
2007-01-29 06:55:41 +00:00
dyoung 741e438b04 Cosmetic: bzero -> memset. Change a bcopy() to a struct assignment. 2007-01-29 06:20:43 +00:00
dyoung 7218cc6856 Cosmetic: bzero -> memset, remove gratuitous cast, compare pointer
with NULL instead of 0.
2007-01-29 06:13:58 +00:00
dyoung 347073533b In In ip6_setmoptions(), don't leave a route cache (struct route_in6)
on the stack if we exit with EADDRNOTAVAIL.

(I already fixed this bug once tonight.  Clearly, ip6_setmoptions
was cut-and-pasted from ip_setmoptions.)
2007-01-29 06:12:48 +00:00
dyoung 40d75dce06 Cosmetic: move an splsoftnet() call out of the variable declarations,
get rid of a gratuitous cast, change (struct socket *)0 to NULL.
2007-01-29 06:05:10 +00:00
dyoung f2a11fe343 bzero -> memset 2007-01-29 06:02:26 +00:00
dyoung ad4f290a37 bzero -> memset. 2007-01-29 06:00:11 +00:00
dyoung 24c98aa46f In ip_setmoptions(), don't leave a route cache (struct route) on
the stack if we exit with EADDRNOTAVAIL.
2007-01-29 05:59:30 +00:00
dyoung 0468886560 Cosmetic: remove extraneous, non-KNF parentheses. Change a
sizeof(type) to a sizeof(*ptr) so the correctness of the statement
is correct "at a glance" (or so I hope).
2007-01-29 05:48:56 +00:00
dyoung 4921da146d bzero -> memset 2007-01-29 05:46:33 +00:00
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
hubertf 0cc1170149 Xref drvctl(8), bump date 2007-01-29 00:48:34 +00:00