Commit Graph

150994 Commits

Author SHA1 Message Date
gdamore 807c3df97e Convert netwinder to generic TODR. Committed after total lack of feedback
(or even acknowledgement of receipt) from anyone on port-netwinder, so it
is untested.  (Compiles though.)
2006-09-15 16:28:41 +00:00
gdamore d17ca6042b Convert sandpoint to GENERIC todr, including breaking of the clock handling
out into its own driver.  (NB: mcclock should really, really be an MI driver
to avoid this kind of pasteware, but it is "nontrivial" to cope with the
fact that some machines have different ideas of mcclock.)
2006-09-15 16:03:14 +00:00
yamt 87780961a4 - options PDPOLICY_CLOCKPRO.
- bump date.
2006-09-15 16:01:24 +00:00
yamt 10ba36b5c6 terminate yamt-pdpolicy branch. 2006-09-15 15:56:11 +00:00
yamt 08c96f5c24 sync with kernel after yamt-pdpolicy merge. 2006-09-15 15:53:42 +00:00
yamt 87403155ba bump to 4.99.2. yamt-pdpolicy merge. 2006-09-15 15:52:13 +00:00
yamt 9d3e3eab23 merge yamt-pdpolicy branch.
- separate page replacement policy from the rest of kernel
	- implement an alternative replacement policy
2006-09-15 15:51:12 +00:00
elad 6cb705e0b1 Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
2006-09-15 15:49:29 +00:00
elad 56b99b4fca Remove sentence no longer true. 2006-09-15 14:41:57 +00:00
elad b60c6b99ca Introduce a new flag we mark as TRUE when we load listeners, and change
the logic in kauth_authorize_action() to use it.

When we try to authorize a request and the flag is FALSE, it means a
kernel was compiled with no listeners (or we're in very early boot stages),
and we always allow the request because it's likely to be coming from the
kernel itself or from loading an LKM with the security model (later on).

Assert that if the "listeners have been loaded" flag is FALSE, there are
really no listeners for the scope we're authorizing on.

When the flag is TRUE (ie., listeners have been loaded) but they were
later removed, creating a scope with no listeners, the request will be
denied further down.

This allows us to have the security model compiled outside the NetBSD
kernel and later loaded as an LKM, without fearing an attack will just
remove listeners we loaded earlier to create a "fail open" situation.

Input from yamt@, thorpej@, gdt@, dan@.
Okay yamt@, thorpej@.
2006-09-15 14:28:04 +00:00
yamt 30a25a27c1 yamt-pdpolicy-base9. 2006-09-15 14:07:56 +00:00
is 1860a0e148 Simply use the device name for the workqueue name. 2006-09-15 11:22:21 +00:00
is a2f7b2e007 aue_ioctl() for the murpose of adding/deleting multicast addresses is called
from interupt context. Defer its processing to a workqueue(9).
This fixes PR 34521.
2006-09-15 10:47:34 +00:00
manu 2b7658dc54 Fix build on Linux 2006-09-15 09:40:44 +00:00
gdamore 382a67e7e4 Convert bebox to MI todr. As part of this, separate out the mc146818
clock handling.  Originally reviewed with that committed as an MI driver
in dev/isa, crazy MD versions of mcclock made that impossible.  So for
now I'm only handling it as an MD driver.  Ok garbled@
2006-09-15 08:25:02 +00:00
skrll 73f2f65977 Convert hp700 to __HAVE_GENERIC_TODR
Move the tod routines to dev/pdc.c as suggested by Izumi Tsutsui - we
access the tod device via the pdc.

Tested on a hp712/60 with a flat battery.
2006-09-15 07:51:17 +00:00
martin 092e3c8b7a Do not bother to save fpu state when we are about to get rid of it. 2006-09-15 07:42:38 +00:00
skrll d49ab36123 Do the NetBSD thing wrt resettodr in cpu_reboot. That is, remove OpenBSD
leftovers.
2006-09-15 06:11:40 +00:00
skrll f576f19cbb Fix comment. %t1 is the syscall # not curlwp. 2006-09-15 06:09:36 +00:00
skrll b0b0343b24 ANSIfy 2006-09-15 05:29:44 +00:00
cherry 3a0cfd5a72 add ia64 to the ugly IEEEFP hackaround 2006-09-15 00:01:24 +00:00
cherry 51b652e0e3 -DELFSIZE=64 for csu build 2006-09-14 23:55:54 +00:00
cherry ebd1964a09 Bootstrap for ia64 2006-09-14 23:48:28 +00:00
wiz d6915480eb Do not use tabs in this file -- this breaks output. Use spaces instead. 2006-09-14 23:23:56 +00:00
he 8fabe65c5c Replace CPU_UPAID with cpu_number(), says martin. 2006-09-14 22:44:18 +00:00
he 0486aabc27 Make the sparc GENERIC_SUN4U kernel build by casting via an uintptr_t
before casting to a pointer.
2006-09-14 22:43:27 +00:00
christos 32f8a691e7 - Back to using kvm if we have access to it, since the sysctl stats do not
yet support all the fields we need.
- Don't core-dump if we could not open the kvm file.
2006-09-14 20:43:50 +00:00
christos 13a976b45e print "-"'s for the statistics that we don't support in the sysctl interface
and make columns aligned again.
2006-09-14 20:42:34 +00:00
christos fd58d46323 when re-opening the file only set SV_FIRST, don't clear accidentally SV_DB
because it leads to core-dumps.
2006-09-14 19:58:48 +00:00
plunky c4b4f61979 add bluetooth capability to alpha port 2006-09-14 18:08:06 +00:00
reinoud d1de30eaae Fix same panic problem as with cd.c when a scsi error happends on
read/write action. It would panic on a diagnosic assertion. When a scsi
read/write command fails, the whole extent is gone bad so mark all as not
done.
2006-09-14 17:54:34 +00:00
gdamore 51d37264ff Convert playstation2 to todr and tc. This is not compile tested, as the
current tree isn't buildable even by the cross tools (which I lack), due
to C99.  Approved in principle by martin@, simon@
2006-09-14 16:07:00 +00:00
martin 02fbfe2681 Vcons-ify the ffb driver, from macallan.
Also adds some redrawing when entering DDB.
2006-09-14 16:05:18 +00:00
gdamore 576e29ee00 Luna68k is converted to timecounters. (Untested). 2006-09-14 15:05:19 +00:00
gdamore 8e61a34d9f Update luna68k to MI todr and timecounters. 2006-09-14 15:04:07 +00:00
hubertf 8d5320e242 Fix last commit - it's nice to actually be able to select sets when told so 2006-09-14 14:42:37 +00:00
pavel d8b49bb74e Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.
2006-09-14 13:01:31 +00:00
yamt 97194de33c kauth_register_scope: don't leak a listener
when no default listener is specified.
2006-09-14 11:37:07 +00:00
martin 65c4655dde mrg does not like me (ab)using dv_unit ;-)
Redo previous by just counting cpu instances, just like sparc does.
2006-09-14 09:00:14 +00:00
martin 8e5eebeeb2 Pass the current cpu unit no to alloc_cpuinfo and use it as ci_number
(instead of the UPA id). That way we have consistent cpu* names.
XXX - cpu_attach needs SMP work
2006-09-14 08:31:09 +00:00
skrll 4f50b00c11 ia64 doesn't do gdb yet. 2006-09-14 06:28:47 +00:00
mhitch 4adefbd6e8 Uvm changes over 17 months ago resulted in the 68040/060 segment table
page being entered with pmap_kenter(), which does not record the mapping
in the pv table.  Attempting to inhibit caching of that page as required
by the 68060 hardware no longer changes the PTE and caused varying degrees
of multiple faulting, sometimes resulting in an unusable system.  Apparently
very few people attempted to run a 68060 based system since that change.
Fix to to change the caching bits directly rather than using pmap_changebit().
2006-09-14 01:27:59 +00:00
gdamore 29dad6a290 Converted x68k to todr. Compile tested only, but it has a low probably
of breaking anything.
2006-09-14 01:18:11 +00:00
gdamore f2a34ea075 Convert sbmips to generic TODR. ok simonb@. 2006-09-14 00:03:45 +00:00
wiz 453a52ad59 Remove some more stuff that is (now) documented
in the pkgsrc guide.
2006-09-13 23:35:48 +00:00
wiz 49984f5fd6 Bump date for previous. Fix typo. 2006-09-13 22:52:46 +00:00
manu 717102f4bb Jumbo COMPAT_LINUX/COMPAT_LINUX32 bugfix, with the help of Nicolas Joly
- Fix shmat return value on amd64: it uses no black magic with retval[0]
- Fix integer overflows in sysinfo
- Implement sysinfo, mmap2, sched_getparam, sched_getscheduler, mremap,
  and madvise in COMPAT_LINUX32
- Fix improper types used in setgroups16/getgroups16
- Implement mmap2 for COMPAT_LINUX32
- Ifdef debug messages by DEBUG_LINUX
2006-09-13 19:55:49 +00:00
manu 99bb1b27be This file was not used anymore 2006-09-13 19:47:30 +00:00
spz f3dd46346c change the variable name in the CSR_TRACE macro so it doesn't collide with
a previous definition of 's' (which makes gcc4 warn)
Reviewed by <is>.
2006-09-13 16:45:58 +00:00
spz baf526d49e const'ify several char * to shut up gcc4 warnings
Reviewed by <is>
2006-09-13 16:43:51 +00:00