Commit Graph

82985 Commits

Author SHA1 Message Date
rwatson
f3748b0c0b Update MAC modules for changes in arguments for exec MAC policy
entry points to include an explicit execlabel.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-11-08 18:04:36 +00:00
rwatson
95c4afbed0 Add an explicit execlabel argument to exec-related MAC policy entry
points, rather than relying on policies to grub around in the
image activator instance structure.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-11-08 18:04:00 +00:00
bmah
b6d1dfe966 Infrastructure for ia64 release notes and installation guide. 2002-11-08 18:01:31 +00:00
gordon
67cb5b60d2 Diff reduction to NetBSD:
Fix a minor grammer nit.
Get rid of _echo that uses logger and just call logger in the 3 routines
that need it.
Add a comment referencing rc.conf(5) in the case of an incorrectly set
variable.

This pulls rc.subr up to 1.51 of rc.subr. I skipped 1.49 (systrace support)
since I don't have systrace.

Obtained from:	NetBSD
2002-11-08 17:06:15 +00:00
jmallett
5c2d1427fb Convert some broken cases where Error is called, but we try to continue,
to Fatal errors, because the logic that we use to try to continue is far
too broken, and makes things look and act weird, because we end up pointing
past the end of a buffer boundry into freed memory in the caller, as we
don't come close to setting the lengthPtr to a sane value.

Reviewed by:	make@

(This only changes failure cases which would have died horrid deaths to
 explicit clean death failure cases.)
2002-11-08 16:59:11 +00:00
phk
38900b3ee3 Remove harmless but irritating printf. 2002-11-08 15:35:16 +00:00
phk
875ed4eea7 Always recalculate the SRM checksum if the label is at 64 bytes offset.
Tested by:	jhb
2002-11-08 15:31:34 +00:00
nyan
fd118b4af5 - Recognize FAT partition on MBR and PC98 disks.
- Fix to convert to the name of partition.
2002-11-08 15:25:15 +00:00
jhb
1027780c50 - Update the SIMOS fp-stealing code to KSE-II and beyond.
- Wrap a variable only used in !SIMOS case in #ifndef SIMOS.
2002-11-08 15:24:32 +00:00
jhb
8ff6cd442c Remove #ifdef DEBUG signal debugging code brought over from NetBSD with the
original signal handling code.  It doesn't compile and it seems the rest of
the infrastructure was never brought over from NetBSD.
2002-11-08 15:16:38 +00:00
jhb
2c9bc07b31 Make xrpu(4) i386-only. Consumers of i386_btop() are not MI. 2002-11-08 15:05:16 +00:00
rwatson
deb24d70c0 Update acl.3 to xref getfacl(1) and setfacl(1), the recommended tools for
manipulating file ACLs.  Update the status of the implementation a bit,
update the copyright, etc.

Obtained from:	TrustedBSD Project
2002-11-08 15:01:28 +00:00
jhb
bf90740990 Wrap a device_printf() that violates bus space abstractions to figure out
if it's IO port resource is IO or memory mapped for the sake of a printf
using i386-specific values in #ifdef __i386__.
2002-11-08 15:01:02 +00:00
jhb
d102d4721a Use %z to print a size_t value. 2002-11-08 14:58:35 +00:00
jhb
d39f72b79f Use %z to print size_t values. 2002-11-08 14:57:18 +00:00
jhb
980dea1922 Cast a ptrdiff_t to an int to printf. 2002-11-08 14:52:26 +00:00
jhb
4d0d9edb13 Use %z to print a size_t value. 2002-11-08 14:50:44 +00:00
nyan
aecfe31a1d MFi386: revision 1.4. 2002-11-08 14:49:14 +00:00
jhb
fa9c6cb843 Don't set a variable to a bogus value right before setting it to the
correct value in the next statement.
2002-11-08 14:00:44 +00:00
jhb
c849fe6dd8 Don't set a value to a variable that we don't use. 2002-11-08 14:00:09 +00:00
mjacob
1ea8546ca7 Make changes such that the kernel will now fit on floppy #1.
This involves moving all networking drivers to floppy 2, all RAID
nfsclient && cd9660 to floppy 3 (and adding ispfw).

COMPAT_FREEBSD4 had to come back, maxusers is down to 2.

AHC is out until somebody can make it a module for alpha.

TurboLaser is out because it rarely has a floppy and probably
no longer works *anyway*.

There's probably some cleanup that can be done because I was told
that things in drivers.conf don't have to be removed via dokern.sh,
but because I formally tested the release build with this version
and don't want to spend another half day on it, it's going in.

I'm sure we'll have to do some further changes prior to release.

NB: Not tested end to end yet because I've been told that sysinstall
doesn't yet work.
2002-11-08 13:58:48 +00:00
jhb
481edf29a7 - Merge Write_FreeBSD() into Write_Disk().
- Miscellaneous cleanups.
2002-11-08 13:58:00 +00:00
ru
d07178d31f DON'T EVER PUT THIS BACK!
Pointy hat to:	obrien
2002-11-08 12:47:51 +00:00
tmm
6b29f7e140 Remove physmem from here, too, as it is defined in vm_init.c since
r1.35 (forgotten in my last commit due to a botched patch).

Pointy hat to:	tmm
2002-11-08 11:10:50 +00:00
mr
10ff71fdf9 Reviewed by: n_hibma
MFC after:	2 weeks
fix XPT_CALC_GEOMETRY to fill in some reasonable values.
Inspired by aic/sbp.
2002-11-08 07:57:42 +00:00
bmah
1f976473de Try to make this document reflect reality better:
o All of the Q&A entries in this section were i386-specific, so make
these conditional on building for that platform.  If
non-i386-platforms need similar Q&A lists, they can add their own to
this file.

o Coalesce the two Q&A sections into one.

o Correct some device names (wd(4) devices have not existed for quite
some time).

o Get rid of a number of obsolete entries (suggested by jhb).
2002-11-08 04:52:04 +00:00
simokawa
37022b111b Add fwe.4. 2002-11-08 03:24:32 +00:00
davidxu
8274c76b58 adjust critical section to only wrap around vm86_bioscall(). 2002-11-08 03:07:52 +00:00
tjr
dff8f5c919 Detect and exit on write errors. 2002-11-08 02:51:31 +00:00
davidxu
9ca980d0e7 use critical_enter/exit to add a critical section around BIOS call,
this unbreaks WITNESS.

Pointed out by: jhb
2002-11-08 01:09:16 +00:00
tmm
f740e3df9b Move the definitions of the hw.physmem, hw.usermem and hw.availpages
sysctls to MI code; this reduces code duplication and makes all of them
available on sparc64, and the latter two on powerpc.
The semantics by the i386 and pc98 hw.availpages is slightly changed:
previously, holes between ranges of available pages would be included,
while they are excluded now. The new behaviour should be more correct
and brings i386 in line with the other architectures.

Move physmem to vm/vm_init.c, where this variable is used in MI code.
2002-11-07 23:57:17 +00:00
mux
aae3d5b8b6 Better printf() formats. 2002-11-07 23:16:22 +00:00
mux
800d38e3eb Some more printf() format fixes. 2002-11-07 23:03:04 +00:00
jhb
1e5ba1ad0d Add a cast to quiet a warning. 2002-11-07 22:49:15 +00:00
mux
afab015685 Correctly print vm_offset_t types. 2002-11-07 22:49:07 +00:00
alfred
815055f65a Properly parenthesize the DBREG_DRX macro's variables to allow for
DBREG_DRX(&dbregs, n) usage.
2002-11-07 22:42:31 +00:00
jhb
602ba7d5eb - Use %j to print intmax_t values.
- Cast more daddr_t values to intmax_t when printing to quiet warnings.
2002-11-07 22:41:08 +00:00
jhb
47dd2d4a6b Use %z to quiet a warning. 2002-11-07 22:38:04 +00:00
jhb
27637bef6c Cast a pointer to a uintptr_t to quiet a warning. 2002-11-07 22:35:45 +00:00
jhb
1ca1a3af68 Third argument to copyinstr() is a pointer to a size_t, not a pointer to a
u_int.
2002-11-07 22:33:28 +00:00
jhb
6a62fdc1c9 - Use %p to print pointers instead of casting pointers to an int and using
0x%x.
- Add a cast to quiet a warning.
2002-11-07 22:25:13 +00:00
jhb
ddccbcba68 Use [u]intmax_t and %j instead of long long and %ll to better fix warnings
I fixed earlier.

Requested by:	mux, jake
2002-11-07 22:23:46 +00:00
jhb
4f451155dc Make 'rclk' a uintptr_t to quiet warnings. 2002-11-07 22:22:10 +00:00
jhb
c792b17a1a Use %z and %j to quiet warnings. 2002-11-07 22:21:38 +00:00
jhb
acd06c3cb3 Cast a pointer to a uintptr_t instead of a u_int. 2002-11-07 22:21:10 +00:00
jhb
8120d9e4ea Fix the rest of the 64-bit warnings for the sr(4) driver. 2002-11-07 22:20:22 +00:00
fenner
abf784c214 Don't exit with success after timeout during authentication. 2002-11-07 22:16:45 +00:00
bmah
ffeb4c27ff Mark ed(4) as i386/pc98-only, tracking src/sys/conf/NOTES rev. 1.1109. 2002-11-07 22:11:00 +00:00
mux
ad09b5b153 - Fix a bunch of casts to long which were truncating off_t's.
- Remove the comments which were justifying this by the fact
that we don't have %q in the kernel, this was probably right
back in time, but we now have %q, and we even have better to
print those types (%j).
2002-11-07 21:56:05 +00:00
jhb
5195107f71 Explicitly cast daddr_t's to long long's when printing them since daddr_t
is not long long on all archs.  (They happen to be long's on 64-bit arch's
and gcc considers that significant enough to warn about it.)  These should
probably be uintmax_t but I didn't feel like adding all the extra includes.
2002-11-07 21:52:51 +00:00