]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoBring in two sets of changes:
rwatson [Tue, 5 Nov 2002 17:51:56 +0000 (17:51 +0000)]
Bring in two sets of changes:

(1) Permit userland applications to request a change of label atomic
    with an execve() via mac_execve().  This is required for the
    SEBSD port of SELinux/FLASK.  Attempts to invoke this without
    MAC compiled in result in ENOSYS, as with all other MAC system
    calls.  Complexity, if desired, is present in policy modules,
    rather than the framework.

(2) Permit policies to have access to both the label of the vnode
    being executed as well as the interpreter if it's a shell
    script or related UNIX nonsense.  Because we can't hold both
    vnode locks at the same time, cache the interpreter label.
    SEBSD relies on this because it supports secure transitioning
    via shell script executables.  Other policies might want to
    take both labels into account during an integrity or
    confidentiality decision at execve()-time.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRegen.
rwatson [Tue, 5 Nov 2002 17:48:04 +0000 (17:48 +0000)]
Regen.

21 years agoFlesh out the definition of __mac_execve(): per earlier discussion,
rwatson [Tue, 5 Nov 2002 17:47:08 +0000 (17:47 +0000)]
Flesh out the definition of __mac_execve(): per earlier discussion,
it's essentially execve() with an optional MAC label argument.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoDocument the current default for VersionAddendum.
des [Tue, 5 Nov 2002 17:25:15 +0000 (17:25 +0000)]
Document the current default for VersionAddendum.

21 years agoAccurately reflect our local changes and additions.
des [Tue, 5 Nov 2002 17:24:01 +0000 (17:24 +0000)]
Accurately reflect our local changes and additions.

21 years agoDocument the current default value for VersionAddendum.
des [Tue, 5 Nov 2002 17:17:09 +0000 (17:17 +0000)]
Document the current default value for VersionAddendum.

21 years agoSince neither the Biba policy nor the MLS policy make use of
rwatson [Tue, 5 Nov 2002 16:44:29 +0000 (16:44 +0000)]
Since neither the Biba policy nor the MLS policy make use of
transitioning, remove their transition entry points.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoGrab 181 for HP/Compaq ProLiant advanced server management driver
peter [Tue, 5 Nov 2002 16:12:31 +0000 (16:12 +0000)]
Grab 181 for HP/Compaq ProLiant advanced server management driver

21 years agoAssert that appropriate vnodes are locked in mac_execve_will_transition().
rwatson [Tue, 5 Nov 2002 15:11:33 +0000 (15:11 +0000)]
Assert that appropriate vnodes are locked in mac_execve_will_transition().
Allow transitioning to be twiddled off using the process and fs enforcement
flags, although at some point this should probably be its own flag.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoHook up the mac_will_execve_transition() and mac_execve_transition()
rwatson [Tue, 5 Nov 2002 14:57:49 +0000 (14:57 +0000)]
Hook up the mac_will_execve_transition() and mac_execve_transition()
entrypoints, #ifdef MAC.  The supporting logic already existed in
kern_mac.c, so no change there.  This permits MAC policies to cause
a process label change as the result of executing a binary --
typically, as a result of executing a specially labeled binary.

For example, the SEBSD port of SELinux/FLASK uses this functionality
to implement TE type transitions on processes using transitioning
binaries, in a manner similar to setuid.  Policies not implementing
a notion of transition (all the ones in the tree right now) require
no changes, since the old label data is copied to the new label
via mac_create_cred() even if a transition does occur.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoTypo in comment: commmand -> command
keramida [Tue, 5 Nov 2002 14:54:07 +0000 (14:54 +0000)]
Typo in comment: commmand -> command

Reviewed by: jhb

21 years agoFixes to unbreak Alpha releases:
ru [Tue, 5 Nov 2002 14:44:46 +0000 (14:44 +0000)]
Fixes to unbreak Alpha releases:

Strip ${RD}/mfsfd/stand/etc/defaults/rc.conf.

Don't copy loader.help to ${RD}/mfsfd/boot, it serves no useful purpose.

Removed the now no-op commands to copy ${RD}/trees/base/dev bits to
${RD}/mfsfd/dev, now that DEVFS is the default.

Removed UFS_ACL, PSEUDOFS, and COMPAT_FREEBSD4 options from the BOOTMFS
kernel.

Moved miibus network module to the drivers floppy.

isp(4) and mpt(4) now have corresponding modules, move them to the third
floppy as well.

Caution!  With these changes, mfsroot.flp has only 11K left, and
kern.flp has even less -- 5K.

21 years agoUse more non-b0rked error reporting. Print the disk we are trying to open
jmallett [Tue, 5 Nov 2002 14:30:41 +0000 (14:30 +0000)]
Use more non-b0rked error reporting.  Print the disk we are trying to open
and (we have the disk error from libufs? the disk error: the errno).

Requested by: bde, <many>

21 years agoMake a small (1.2M) fixit floppy image for pc98.
nyan [Tue, 5 Nov 2002 13:54:58 +0000 (13:54 +0000)]
Make a small (1.2M) fixit floppy image for pc98.

21 years agoWrap function prototype declarations in __BEGIN_DECLS to do the right thing
jmallett [Tue, 5 Nov 2002 10:57:53 +0000 (10:57 +0000)]
Wrap function prototype declarations in __BEGIN_DECLS to do the right thing
with them in non-C cases, outside of the kernel.

Include <sys/cdefs.h> for __BEGIN_DECLS/__END_DECLS as other headers seem
to do in this area.

Requested by: Patrick Hartling <patrick@137.org>

21 years agoRemove undefined variable.
mdodd [Tue, 5 Nov 2002 10:56:14 +0000 (10:56 +0000)]
Remove undefined variable.
Somehow this didn't make it in the last commits.

21 years agoWrap function prototype declarations in __BEGIN_DECLS to do the right thing
jmallett [Tue, 5 Nov 2002 10:55:16 +0000 (10:55 +0000)]
Wrap function prototype declarations in __BEGIN_DECLS to do the right thing
with them in non-C cases.

Requested by: Patrick Hartling <patrick@137.org>

21 years agoStyle/whitespace changes.
mdodd [Tue, 5 Nov 2002 10:12:03 +0000 (10:12 +0000)]
Style/whitespace changes.

21 years agoFix for GEOM.
mdodd [Tue, 5 Nov 2002 09:50:15 +0000 (09:50 +0000)]
Fix for GEOM.

Tested on:  i386

21 years ago- Convert to newbus, bus_space etc.
mdodd [Tue, 5 Nov 2002 09:37:32 +0000 (09:37 +0000)]
- Convert to newbus, bus_space etc.
- Move to MI space.

Tested on:  i386

21 years agoUse ${TARGET_ARCH} for ia64 tests.
ru [Tue, 5 Nov 2002 09:30:38 +0000 (09:30 +0000)]
Use ${TARGET_ARCH} for ia64 tests.

21 years agoo Remove devices that are commented out.
marcel [Tue, 5 Nov 2002 08:35:37 +0000 (08:35 +0000)]
o  Remove devices that are commented out.
o  Enable sc
o  Remove NO_GEOM. We need GEOM for GPT.
o  Remove NO_CPU_COPTFLAGS.

21 years agoRemove mcclock. It's an Alpha left-over.
marcel [Tue, 5 Nov 2002 08:23:26 +0000 (08:23 +0000)]
Remove mcclock. It's an Alpha left-over.

21 years agoCreate a special version for ia64. For auto-boot to work, we need
marcel [Tue, 5 Nov 2002 06:12:52 +0000 (06:12 +0000)]
Create a special version for ia64. For auto-boot to work, we need
the loader in an EFI partition. This automaticly means we need the
kernel there as well.
In order to avoid having to worry about a geometry as much as
possible, we partition the disk with GPT.
With this, auto-boot works, but we have a problem mounting the
MFS.

21 years agoTest for the existance of kernel ppp support by seeing if the kernel has
brooks [Tue, 5 Nov 2002 05:58:31 +0000 (05:58 +0000)]
Test for the existance of kernel ppp support by seeing if the kernel has
the module compiled in or loaded instead of bogusly checking for ppp0.
Also if and only if the caller is actually root and the kernel does not
have ppp support, try to load the ppp module before giving up.

21 years agoFix typo. ioport_rid should be irq_rid.
davidxu [Tue, 5 Nov 2002 04:03:42 +0000 (04:03 +0000)]
Fix typo. ioport_rid should be irq_rid.

21 years agoSync with the stock FSF 3.2 file. This adds TRANSFER_FROM_TRAMPOLINE,
obrien [Tue, 5 Nov 2002 03:35:56 +0000 (03:35 +0000)]
Sync with the stock FSF 3.2 file.  This adds TRANSFER_FROM_TRAMPOLINE,
which is needed in order for nexted C functions to work.

21 years agoSony CXD3222 OHCI i.LINK chips needs more DELAY before starting SCLK
simokawa [Tue, 5 Nov 2002 02:42:28 +0000 (02:42 +0000)]
Sony CXD3222 OHCI i.LINK chips needs more DELAY before starting SCLK
when no devices are connected.

21 years agoRemove reference to struct execve_args from struct imgact, which
rwatson [Tue, 5 Nov 2002 01:59:56 +0000 (01:59 +0000)]
Remove reference to struct execve_args from struct imgact, which
describes an image activation instance.  Instead, make use of the
existing fname structure entry, and introduce two new entries,
userspace_argv, and userspace_envv.  With the addition of
mac_execve(), this divorces the image structure from the specifics
of the execve() system call, removes a redundant pointer, etc.
No semantic change from current behavior, but it means that the
structure doesn't depend on syscalls.master-generated includes.

There seems to be some redundant initialization of imgact entries,
which I have maintained, but which could probably use some cleaning
up at some point.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoLicense update authorized by NAI: remove clause 3.
rwatson [Tue, 5 Nov 2002 01:42:35 +0000 (01:42 +0000)]
License update authorized by NAI: remove clause 3.

21 years agoSlight redesign for fitting in with -current.
julian [Tue, 5 Nov 2002 01:08:11 +0000 (01:08 +0000)]
Slight redesign for fitting in with -current.

21 years agoFix bogus return values from libc_r's write() routine in situations where
archie [Tue, 5 Nov 2002 00:59:18 +0000 (00:59 +0000)]
Fix bogus return values from libc_r's write() routine in situations where
a partial-write is followed by an error.

PR: 43335
MFC after: 1 week

21 years agoThe symbol for Hertz is Hz.
dwmalone [Mon, 4 Nov 2002 22:44:42 +0000 (22:44 +0000)]
The symbol for Hertz is Hz.

21 years agoClarify language relating to ACLs, Capabtilities, and MAC, since the
rwatson [Mon, 4 Nov 2002 20:52:09 +0000 (20:52 +0000)]
Clarify language relating to ACLs, Capabtilities, and MAC, since the
implementation status of these services has changed substantially
since this man page was last updated.

21 years agoForce rpcbind to start even if it wasn't enabled. This solves the ypbind
fenner [Mon, 4 Nov 2002 20:51:20 +0000 (20:51 +0000)]
Force rpcbind to start even if it wasn't enabled.  This solves the ypbind
problems people were having at startup.

Approved by:    re

21 years agoUpdate license, historical information.
rwatson [Mon, 4 Nov 2002 20:45:44 +0000 (20:45 +0000)]
Update license, historical information.

21 years agoPoint out that the MAC Framework is considered experimental.
rwatson [Mon, 4 Nov 2002 20:42:58 +0000 (20:42 +0000)]
Point out that the MAC Framework is considered experimental.

21 years agoUpdate ntpd to 4.1.1b. There are two new drivers and the usual bunch of
roberto [Mon, 4 Nov 2002 19:44:26 +0000 (19:44 +0000)]
Update ntpd to 4.1.1b. There are two new drivers and the usual bunch of
fixes. See contrib/ntp/ChangeLog for details.

MFC after: 1 month
Prodded by: jhay
Tested on: sparc64 (panther), alpha (beast) and i386.

21 years agoMerge conflicts.
roberto [Mon, 4 Nov 2002 19:38:46 +0000 (19:38 +0000)]
Merge conflicts.

MFC after: 1 month

21 years agoThis commit was generated by cvs2svn to compensate for changes in r106424,
roberto [Mon, 4 Nov 2002 19:36:11 +0000 (19:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r106424,
which included commits to RCS files with non-trunk default branches.

21 years agoVirgin import of ntpd 4.1.1b
roberto [Mon, 4 Nov 2002 19:36:11 +0000 (19:36 +0000)]
Virgin import of ntpd 4.1.1b

21 years agoAfter waiting for help with the markup, I finally decided to just patch
nsayer [Mon, 4 Nov 2002 19:30:04 +0000 (19:30 +0000)]
After waiting for help with the markup, I finally decided to just patch
the page myself. The new language is more accurate than what was there
before, but the most accurate way of describing the funcionality eludes
me.

PR: kern/33904
MFC after: 1 month

21 years agoExport the function vm_page_splay().
alc [Mon, 4 Nov 2002 19:21:39 +0000 (19:21 +0000)]
Export the function vm_page_splay().

21 years agoFix a grammar bogon.
jhb [Mon, 4 Nov 2002 19:18:57 +0000 (19:18 +0000)]
Fix a grammar bogon.

PR: 44883
Submitted by: Christian Brueffer <chris@unixpages.org>

21 years agoCall pcm_chn_destroy() in pcm_killchan() so that channel mutexes are destroyed and...
cognet [Mon, 4 Nov 2002 19:12:02 +0000 (19:12 +0000)]
Call pcm_chn_destroy() in pcm_killchan() so that channel mutexes are destroyed and struct pcm_channel freed.

Reviewed by: cg
MFC after: 3 days

21 years agoLicense: update, remove clause three of BSD license per approval of
rwatson [Mon, 4 Nov 2002 18:11:17 +0000 (18:11 +0000)]
License: update, remove clause three of BSD license per approval of
NAI.

Add cautionary notes on the experimental status of the MAC Framework
in FreeBSD 5.0.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoImplement mpo_check_system_acct and mpo_check_system_settime() for Biba:
rwatson [Mon, 4 Nov 2002 17:50:52 +0000 (17:50 +0000)]
Implement mpo_check_system_acct and mpo_check_system_settime() for Biba:
require Biba privilege to configure either, and require that accounting
files be high integrity.  Note that this does allow implicit information
flow from low to high integrity, but it also protects the integrity
of accounting data.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoHook the new nextboot(8) manpage up to the build.
gordon [Mon, 4 Nov 2002 17:39:54 +0000 (17:39 +0000)]
Hook the new nextboot(8) manpage up to the build.

21 years agoCorrect use of mac_biba_subject_privileged() in swapon() code.
rwatson [Mon, 4 Nov 2002 17:36:47 +0000 (17:36 +0000)]
Correct use of mac_biba_subject_privileged() in swapon() code.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd a nextboot manual page.
gordon [Mon, 4 Nov 2002 17:35:22 +0000 (17:35 +0000)]
Add a nextboot manual page.

Spotted by: brandt@fokus.gmd.de

21 years agoMove the modules in the mfsroot to /modules instead of /stand/modules so
jhb [Mon, 4 Nov 2002 15:44:57 +0000 (15:44 +0000)]
Move the modules in the mfsroot to /modules instead of /stand/modules so
that they aren't copied over into /stand of new installations.

Submitted by: matusita
Tested on: i386

21 years agoPermit MAC policies to instrument the access control decisions for
rwatson [Mon, 4 Nov 2002 15:13:36 +0000 (15:13 +0000)]
Permit MAC policies to instrument the access control decisions for
system accounting configuration and for nfsd server thread attach.
Policies might use this to protect the integrity or confidentiality
of accounting data, limit the ability to turn on or off accounting,
as well as to prevent inappropriately labeled threads from becoming nfs
server threads.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUpdate the list of FTP mirrors to reflect the current situation.
roam [Mon, 4 Nov 2002 15:06:09 +0000 (15:06 +0000)]
Update the list of FTP mirrors to reflect the current situation.

Reviewed by:    -doc, -hubs
Approved by:    silence on -doc, -hubs

21 years agoRemove mac_cache_fslabel_in_vnode sysctl -- with the new VFS/MAC
rwatson [Mon, 4 Nov 2002 14:55:14 +0000 (14:55 +0000)]
Remove mac_cache_fslabel_in_vnode sysctl -- with the new VFS/MAC
construction, labels are always cached.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUse ${RD}/trees/base/boot/loader for kern.flp instead of /boot/loader.
nyan [Mon, 4 Nov 2002 12:26:44 +0000 (12:26 +0000)]
Use ${RD}/trees/base/boot/loader for kern.flp instead of /boot/loader.

21 years agoPolish a bit here and there.
phk [Mon, 4 Nov 2002 09:31:02 +0000 (09:31 +0000)]
Polish a bit here and there.
Reenable the geom.ctl device so people can play with gbde.

Sponsored by: DARPA & NAI Labs

21 years agoRun a revision on the GBDE encryption facility.
phk [Mon, 4 Nov 2002 09:27:01 +0000 (09:27 +0000)]
Run a revision on the GBDE encryption facility.

Replace ARC4 with SHA2-512.
Change lock-structure encoding to use random ordering rather for obscurity.
Encrypt lock-structure with AES/256 instead of AES/128.
Change kkey derivation to be MD5 hash based.
Watch for malloc(M_NOWAIT) failures and ditch our cache when they happen.
Remove clause 3 of the license with NAI Labs consent.

Many thanks to "Lucky Green" <shamrock@cypherpunks.to> and "David
Wagner" <daw@cs.berkeley.edu>, for code reading, inputs and
suggestions.

This code has still not been stared at for 10 years by a gang of
hard-core cryptographers.  Discretion advised.

NB: These changes result in the on-disk format changing: dump/restore needed.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd OpenBSD 3.2.
maxim [Mon, 4 Nov 2002 09:19:24 +0000 (09:19 +0000)]
Add OpenBSD 3.2.

Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>
MFC after: 1 week

21 years agoAdded install documentation for pc98.
nyan [Mon, 4 Nov 2002 08:45:31 +0000 (08:45 +0000)]
Added install documentation for pc98.

21 years agoRestore /var/games; lots of ports' games use it.
markm [Mon, 4 Nov 2002 07:50:48 +0000 (07:50 +0000)]
Restore /var/games; lots of ports' games use it.

21 years agoAdd debug.doslowdown to enable/disable niced slowdown on I/O. Default
mckusick [Mon, 4 Nov 2002 07:29:20 +0000 (07:29 +0000)]
Add debug.doslowdown to enable/disable niced slowdown on I/O. Default
to off until locking interference issues get sorted out.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd descriptions for some _PC_* variables from <sys/unistd.h> that
tjr [Mon, 4 Nov 2002 07:21:44 +0000 (07:21 +0000)]
Add descriptions for some _PC_* variables from <sys/unistd.h> that
were missing.

21 years agoCross-reference setfacl(1).
tjr [Mon, 4 Nov 2002 06:46:53 +0000 (06:46 +0000)]
Cross-reference setfacl(1).

21 years agoReject slices where begin == end.
phk [Mon, 4 Nov 2002 06:30:38 +0000 (06:30 +0000)]
Reject slices where begin == end.
Remove clause 3 from the license with NAI Labs consent.

Sponsored by: DARPA & NAI Labs

21 years agoRemove clause 3 in the license with NAI's consent.
phk [Mon, 4 Nov 2002 06:29:05 +0000 (06:29 +0000)]
Remove clause 3 in the license with NAI's consent.
Reject slices with type==0.
Diddle the bootverbose printfs.

Sponsored by: DARPA & NAI Labs

21 years agoBackout "compatibility hack" for __sF.
alfred [Mon, 4 Nov 2002 03:23:56 +0000 (03:23 +0000)]
Backout "compatibility hack" for __sF.

Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter)

21 years agoDetach the pccard bus children when we eject a 16-bit card, not the
imp [Mon, 4 Nov 2002 03:01:56 +0000 (03:01 +0000)]
Detach the pccard bus children when we eject a 16-bit card, not the
32-bit ones.  This was introduced in the last commit.

21 years agoUpdate licenses and wording: NAI has authorized the removal of clause three
rwatson [Mon, 4 Nov 2002 02:35:46 +0000 (02:35 +0000)]
Update licenses and wording: NAI has authorized the removal of clause three
of their BSD-style license; also, carry out the NAI Labs -> Network
Associates Laboratories renaming in these files.

21 years agoLicense and wording updates: NAI has authorized the removal of clause
rwatson [Mon, 4 Nov 2002 01:53:12 +0000 (01:53 +0000)]
License and wording updates: NAI has authorized the removal of clause
three from their BSD-style license.  Also, s/NAI Labs/Network Associates
Laboratories/.

21 years agoLicense clarification and wording changes: NAI has approved removal of
rwatson [Mon, 4 Nov 2002 01:42:39 +0000 (01:42 +0000)]
License clarification and wording changes: NAI has approved removal of
clause three, and NAI Labs now goes by the name Network Associates
Laboratories.

21 years agoAdd the necessary tweaks for FreeBSD/ia64 releases. Note that this is
marcel [Mon, 4 Nov 2002 00:50:01 +0000 (00:50 +0000)]
Add the necessary tweaks for FreeBSD/ia64 releases. Note that this is
in no way final. A typical ia64 wart is that there are no boot blocks.
Instead, we need to create disks with EFI partitions if we want auto
boot to work. All this functionality is not present yet.

21 years agoAdd GPT entry types for partitions we're likely to encounter in the
marcel [Sun, 3 Nov 2002 23:53:42 +0000 (23:53 +0000)]
Add GPT entry types for partitions we're likely to encounter in the
wild. These include MS partitions and Linux partitions. At this time
there's no evidence that HP-UX uses GPT.

21 years agoHook the aic7xxx modules up. This requires some extra care since aicasm
scottl [Sun, 3 Nov 2002 23:48:14 +0000 (23:48 +0000)]
Hook the aic7xxx modules up.  This requires some extra care since aicasm
is a compiler tool and needs to be compiled by the host compiler.  I've
tested this in i386->sparc cross-build, 4.7->current upgrade, normal
buildkernel target, and normal /sys/i386/compile/GENERIC configurations.

Submitted by: ru

21 years ago- Consistent use of warn() vs. perror().
tjr [Sun, 3 Nov 2002 23:22:34 +0000 (23:22 +0000)]
- Consistent use of warn() vs. perror().
- Gracefully handle the case where standard input is missing
  a newline at EOF.
- Exit with status 1 instead of -1 (really 255) on error.
- Add a Diagnostics section to the manual page documenting
  exit status.

Approved by: rwatson

21 years ago - Remove the memory allocation for the object/offset hash table
alc [Sun, 3 Nov 2002 22:20:42 +0000 (22:20 +0000)]
 - Remove the memory allocation for the object/offset hash table
   because it's no longer used.  (See revision 1.215.)
 - Fix a harmless bug: the number of vm_page structures allocated wasn't
   properly adjusted when uma_bootstrap() was introduced.  Consequently,
   we were allocating 30 unused vm_page structures.
 - Wrap a long line.

21 years agoImprove some questionable grammar.
ceri [Sun, 3 Nov 2002 22:06:48 +0000 (22:06 +0000)]
Improve some questionable grammar.

21 years agoCorrectly recognize both bogus and genuine BSD disklabels.
phk [Sun, 3 Nov 2002 21:47:55 +0000 (21:47 +0000)]
Correctly recognize both bogus and genuine BSD disklabels.

Don't expect me to participate in a discussion which is which.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove unused MBR gunk leftover from i386.
jhb [Sun, 3 Nov 2002 21:18:17 +0000 (21:18 +0000)]
Remove unused MBR gunk leftover from i386.

21 years agoearly-adopter/article.sgml: translation fixes
ue [Sun, 3 Nov 2002 12:32:43 +0000 (12:32 +0000)]
early-adopter/article.sgml: translation fixes
relnotes/common/new.sgml:   1.446 -> 1.448

21 years agoAdd status initialization code for acpi_cmbat and acpi_acad,
iwasaki [Sun, 3 Nov 2002 10:49:24 +0000 (10:49 +0000)]
Add status initialization code for acpi_cmbat and acpi_acad,
acpi_cmbat_init_battery() and acpi_cmbat_init_acline() respectively.
Call acpi_cmbat_init_battery() from acpi_cmbat_resume() too just in
case.
This is a workaround for embedded controller operations which is
unstable for about a minute (typically 30 or 40 sec.) at boot time.

21 years agoEnable if_fwe.
simokawa [Sun, 3 Nov 2002 10:41:30 +0000 (10:41 +0000)]
Enable if_fwe.

21 years ago- Added the MenuIPLType menu for selecting pc98 boot IPL.
nyan [Sun, 3 Nov 2002 10:06:22 +0000 (10:06 +0000)]
- Added the MenuIPLType menu for selecting pc98 boot IPL.
- Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus
  on pc98.
- Fixed the MenuMouseType and MenuMousePort menus for pc98.
- Fixed some comments for pc98.

21 years agoFix to compile for pc98.
nyan [Sun, 3 Nov 2002 09:35:08 +0000 (09:35 +0000)]
Fix to compile for pc98.

21 years agoBring newfs_msdos into the GEOM world. Totally rewrite and simplify
scottl [Sun, 3 Nov 2002 08:54:46 +0000 (08:54 +0000)]
Bring newfs_msdos into the GEOM world.  Totally rewrite and simplify
getdiskinfo().  For the fixed-disk case, bpb->hid probably isn't
handled correctly, but I'm not sure if this is a serious problem since
the primary use of this program is to format floppy disks.

Reviewed by:    phk

21 years agoPrint a `+' character after the standard UNIX permission fields in long
tjr [Sun, 3 Nov 2002 07:29:08 +0000 (07:29 +0000)]
Print a `+' character after the standard UNIX permission fields in long
listings if the file has an extended ACL (more than the required 3 entries).
This is what Solaris and IRIX do, and what the withdrawn POSIX.2c standard
required.

Reviewed by: rwatson (an earlier version of the patch)

21 years agoAdd hints for wd1, wd2 and wd3.
nyan [Sun, 3 Nov 2002 06:52:43 +0000 (06:52 +0000)]
Add hints for wd1, wd2 and wd3.

21 years agoIntroduce mac_check_system_settime(), a MAC check allowing policies to
rwatson [Sun, 3 Nov 2002 02:39:42 +0000 (02:39 +0000)]
Introduce mac_check_system_settime(), a MAC check allowing policies to
augment the system policy for changing the system time.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoInitialize d->bios_cyl. We know the media size in sectors, the number
marcel [Sun, 3 Nov 2002 01:37:08 +0000 (01:37 +0000)]
Initialize d->bios_cyl. We know the media size in sectors, the number
of heads end the number of sectors per track. If there's an obvious
insanity (heads and sectors are both zero or the media size is not
an integral multiple of heads times sector) we set the number of
cylinders to zero.

21 years agoChange privilege model for mac_partition such that BSD superuser can change
rwatson [Sun, 3 Nov 2002 00:53:03 +0000 (00:53 +0000)]
Change privilege model for mac_partition such that BSD superuser can change
the partition once a partition has been set.  This is required for correct
operation of sendmail between partitions.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove entry for All Saints' in Portugal. While it's correct, All
grog [Sun, 3 Nov 2002 00:37:04 +0000 (00:37 +0000)]
Remove entry for All Saints' in Portugal.  While it's correct, All
Saints' is celebrated in all Christian countries, and there's already
another entry.

21 years agoX-ref clock_gettime(2).
rwatson [Sat, 2 Nov 2002 23:59:02 +0000 (23:59 +0000)]
X-ref clock_gettime(2).

21 years agoSync to src/sys/kern/syscalls.master
rwatson [Sat, 2 Nov 2002 23:55:30 +0000 (23:55 +0000)]
Sync to src/sys/kern/syscalls.master

21 years agoRegen from yesterday's system call placeholder rename.
rwatson [Sat, 2 Nov 2002 23:54:36 +0000 (23:54 +0000)]
Regen from yesterday's system call placeholder rename.

21 years agoMFp4:
imp [Sat, 2 Nov 2002 23:00:28 +0000 (23:00 +0000)]
MFp4:
o Always release the resources on device detach.
o Attach resources the same with driver added as we do we do in the insert
  case (maybe this should be a routine).
o signal the wakeup of the thread on resume instead of trying to force an
  interrupt.
o Minor debug hacks.
o use 0xffffffff instead of -1 for uint32_t items.
o Don't complain when we're asked to detach no cards.  This is normal.
o Eliminate the now worthless second parameter to card_detach_card.
o minor style(9)isms

Some of these patches may be from: iwasaki-san, jhb, iadowse

21 years agoCatch up with the removal of the vm page buckets spin mutex.
alc [Sat, 2 Nov 2002 22:42:18 +0000 (22:42 +0000)]
Catch up with the removal of the vm page buckets spin mutex.

21 years agoRemove the vm page buckets mutex. As of revision 1.215 of vm/vm_page.c,
alc [Sat, 2 Nov 2002 22:39:30 +0000 (22:39 +0000)]
Remove the vm page buckets mutex.  As of revision 1.215 of vm/vm_page.c,
it is unused.

21 years agoMFp4:
imp [Sat, 2 Nov 2002 22:35:24 +0000 (22:35 +0000)]
MFp4:
o It turns out that we always need to try to route the interrupts for
  the case where the $PIR tells us there can be only one.  Some machines
  require this, while others fail when we try to do this (bogusly, imho).
  Since we have no apriori way of knowing which is which, we always try to
  do the routing and hope for the best if things fail.
o Add some additional comments that state the obvious, but amplify it in
  non-obvious ways (judging from the questions I've gotten).

This should un-break older laptops that still have to use PCIBIOS to route
interrupts.

Tested by: sam

21 years agoUse 0xffffffff instead of -1 for id to compare against.
imp [Sat, 2 Nov 2002 22:32:04 +0000 (22:32 +0000)]
Use 0xffffffff instead of -1 for id to compare against.
Use exact width types, since this is a MD file and won't be used elsewhere.
Fix a couple of resulting printf breakages

Bug found by: phk using Flexlint

21 years agoShamelessly copy the files over from the sparc64 port. Since there
marcel [Sat, 2 Nov 2002 20:31:54 +0000 (20:31 +0000)]
Shamelessly copy the files over from the sparc64 port. Since there
was no history to speak of, a repocopy would not have bought us
anything. Versions copied:
../sparc64/boot_crunch.conf,v 1.3 2002/11/01 15:29:35 jhb
../sparc64/dokern.sh,v 1.1 2002/10/13 18:36:06 jake
../sparc64/mkisoimages.sh,v 1.1 2002/10/13 18:36:06 jake

obtained from: jake, jhb
chapeau: jkh (mkisoimages.sh)

21 years agoUnbreak MNT_UPDATE when running with cd as root. Detect mountroot by
peter [Sat, 2 Nov 2002 20:16:55 +0000 (20:16 +0000)]
Unbreak MNT_UPDATE when running with cd as root.  Detect mountroot by
checking for "path == NULL" (like ffs) rather than MNT_ROOT.  Otherwise
when you try and do an update or mountd does an NFS export, the remount
fails because the code tries to mount a fresh rootfs and gets an EBUSY.
The same bug is in 4.x (which is where I found it).

Sanity check by: mux