]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years ago1. Eliminate compile warnings.
David Xu [Mon, 6 Feb 2006 06:07:56 +0000 (06:07 +0000)]
1. Eliminate compile warnings.
2. Add command 'thread signal' to print out current thread's signal mask
   and pending signals.

18 years agoRegenerate.
Robert Watson [Mon, 6 Feb 2006 02:00:32 +0000 (02:00 +0000)]
Regenerate.

18 years agoPrefer AUE_FOO audit identifiers to AUE_O_FOO, which are largely left
Robert Watson [Mon, 6 Feb 2006 02:00:06 +0000 (02:00 +0000)]
Prefer AUE_FOO audit identifiers to AUE_O_FOO, which are largely left
over from the Darwin implementation.

When we implement a system call as a wrapper to sysctl(), audit it as
AUE_SYSCTL.  This leads to greater compatibility with Solaris audit
trails as sysctl() argument tokens are not the same as the ones for
the originaly system calls (i.e., setdomainname()).

Replace references to AUE_ events that are equivilent to AUE_NULL with
AUE_NULL.  In the case of process signal configuration, this is
because these events do not require auditing.

Move from the Darwin spelling of getsockopt() to the FreeBSD/Solaris
one.

Audit nmount().

Obtained from: TrustedBSD Project

18 years agoWhen exiting a thread, submit any pending record. Today, we don't
Robert Watson [Mon, 6 Feb 2006 01:51:08 +0000 (01:51 +0000)]
When exiting a thread, submit any pending record.  Today, we don't
audit thread exit, but should that happen, this will prevent
unhappiness, as the thread exit system call will never return, and
hence not commit the record.

Pointed out by/with: cognet
Obtained from: TrustedBSD Project

18 years agoRegenerate.
Robert Watson [Mon, 6 Feb 2006 01:40:48 +0000 (01:40 +0000)]
Regenerate.

18 years agoAssign audit event identifiers to Linux i386 system calls.
Robert Watson [Mon, 6 Feb 2006 01:40:30 +0000 (01:40 +0000)]
Assign audit event identifiers to Linux i386 system calls.

Obtained from: TrustedBSD Project

18 years agoRegenerate.
Robert Watson [Mon, 6 Feb 2006 01:16:00 +0000 (01:16 +0000)]
Regenerate.

18 years agoReflect fix in Linux setfsgid() event name from OpenBSM in the alpha
Robert Watson [Mon, 6 Feb 2006 01:13:47 +0000 (01:13 +0000)]
Reflect fix in Linux setfsgid() event name from OpenBSM in the alpha
linux system call table.

Obtained from: TrustedBSD Project

18 years agoMerge OpenBSM 1.0 alpha 3 include file changes from contrib/openbsm/bsm
Robert Watson [Mon, 6 Feb 2006 01:12:46 +0000 (01:12 +0000)]
Merge OpenBSM 1.0 alpha 3 include file changes from contrib/openbsm/bsm
to sys/bsm:

- Correct error in definition of audit event for Linux setfsgid().
- Add audit event identifier for sysarch().

Obtained from: TrustedBSD Project

18 years agoAudit the arguments (user/group IDs) for the system calls that set these IDs.
Wayne Salamon [Mon, 6 Feb 2006 00:32:33 +0000 (00:32 +0000)]
Audit the arguments (user/group IDs) for the system calls that set these IDs.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoAudit the args to rfork(), and the child PID for all fork system calls.
Wayne Salamon [Mon, 6 Feb 2006 00:28:50 +0000 (00:28 +0000)]
Audit the args to rfork(), and the child PID for all fork system calls.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoAudit the pid being requested in wait4().
Wayne Salamon [Mon, 6 Feb 2006 00:19:09 +0000 (00:19 +0000)]
Audit the pid being requested in wait4().

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoAnother update for reality: "dangerously dedicated" mode is now
Ceri Davies [Mon, 6 Feb 2006 00:06:39 +0000 (00:06 +0000)]
Another update for reality:  "dangerously dedicated" mode is now
achieved by hitting 'F', which is no longer undocumented.

PR: bin/92533
Submitted by: Rudolf Cejka <cejkar at fit.vutbr dot cz>

18 years agoThis commit was generated by cvs2svn to compensate for changes in r155364,
Robert Watson [Mon, 6 Feb 2006 00:06:04 +0000 (00:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r155364,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor branch import of OpenBSM 1.0 alpha 3:
Robert Watson [Mon, 6 Feb 2006 00:06:04 +0000 (00:06 +0000)]
Vendor branch import of OpenBSM 1.0 alpha 3:

- Man page formatting, cross reference, mlinks, and accuracy improvements.
- auditd and tools now compile and run on FreeBSD/arm.
- auditd will now fchown() the trail file to the audit review group, if
  defined at compile-time.
- Added AUE_SYSARCH for FreeBSD.
- Definition of AUE_SETFSGID fixed for Linux.

Many thanks to: brueffer, cognet
Obtained from: TrustedBSD Project

18 years agoCorrect typo in sample CVS import line: must specify full path to the
Robert Watson [Mon, 6 Feb 2006 00:03:39 +0000 (00:03 +0000)]
Correct typo in sample CVS import line: must specify full path to the
CVS repository on repoman.

18 years agoAdd auditing of arguments to the close() and fstat() system calls. Much more
Wayne Salamon [Sun, 5 Feb 2006 23:57:32 +0000 (23:57 +0000)]
Add auditing of arguments to the close() and fstat() system calls. Much more
argument auditing yet to come, for remaining system calls in this file.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoRegenerate.
Robert Watson [Sun, 5 Feb 2006 23:28:46 +0000 (23:28 +0000)]
Regenerate.

18 years agoAssign audit event identfiers to Xenix system calls. Note: AUE_EACCESS
Robert Watson [Sun, 5 Feb 2006 23:28:01 +0000 (23:28 +0000)]
Assign audit event identfiers to Xenix system calls.  Note: AUE_EACCESS
is assigned to xenix_eaccess() instead of AUE_ACCESS, as that is the
intended meaning of the system call.  xenix_eaccess() should be
reimplemented using our native eaccess() implementation so that it
works as intended.

Obtained from: TrustedBSD Project

18 years agoCorrect help line: list targets, not names of files generated by targets
Robert Watson [Sun, 5 Feb 2006 23:25:19 +0000 (23:25 +0000)]
Correct help line: list targets, not names of files generated by targets
when no argument is provided to make.

MFC after: 1 week

18 years agoRegenerate (accidentally also committed in commit that updated
Robert Watson [Sun, 5 Feb 2006 23:16:20 +0000 (23:16 +0000)]
Regenerate (accidentally also committed in commit that updated
syscalls.isc).

18 years agoAssign audit event identifiers to ibcs2 ISC system calls.
Robert Watson [Sun, 5 Feb 2006 23:15:22 +0000 (23:15 +0000)]
Assign audit event identifiers to ibcs2 ISC system calls.

Obtained from: TrustedBSD Project

18 years agopflog is a separate module now.
Max Laier [Sun, 5 Feb 2006 22:38:08 +0000 (22:38 +0000)]
pflog is a separate module now.

Submitted by: Antoine Brodin
PR: kern/88271
MFC after: 1 week

18 years agoBackout rev 1.12. It would have been a good thing, if gcc was smart enough
Olivier Houchard [Sun, 5 Feb 2006 22:06:12 +0000 (22:06 +0000)]
Backout rev 1.12. It would have been a good thing, if gcc was smart enough
not to generate bad code.

18 years agoOn process exit, audit the return value of the process, and commit the
Robert Watson [Sun, 5 Feb 2006 21:08:25 +0000 (21:08 +0000)]
On process exit, audit the return value of the process, and commit the
record immediately, as this system call never returns.

Obtained from: TrustedBSD Project

18 years agoWhen GC'ing a thread, assert that it has no active audit record.
Robert Watson [Sun, 5 Feb 2006 21:06:09 +0000 (21:06 +0000)]
When GC'ing a thread, assert that it has no active audit record.
This should not happen, but with this assert, brueffer and I would
not have spent 45 minutes trying to figure out why he wasn't
seeing audit records with the audit version in CVS.

Obtained from: TrustedBSD Project

18 years agoAdd some new release notes for 2006 security advisories:
Bruce A. Mah [Sun, 5 Feb 2006 20:54:53 +0000 (20:54 +0000)]
Add some new release notes for 2006 security advisories:
SA-06:{01,02,03,04,05,06,07}.

(SA-06:08 does not appear to apply to CURRENT.)

Bump copyright date while here.

18 years agoAssign gid 77 to audit instead of gid 73. The ports group list did not
Robert Watson [Sun, 5 Feb 2006 19:34:09 +0000 (19:34 +0000)]
Assign gid 77 to audit instead of gid 73.  The ports group list did not
include '73', which was assigned in a ports passwd entry to ircservices.

Pointed out by: ceri

18 years agoThe rpc.pcnfsd server was in the base for a little over seven minutes
Ceri Davies [Sun, 5 Feb 2006 19:23:05 +0000 (19:23 +0000)]
The rpc.pcnfsd server was in the base for a little over seven minutes
back in 1994.  Change the example entry to point at the port, as per
the entries for uucpd et al.

18 years agoCorrect a user-visible typo.
Ceri Davies [Sun, 5 Feb 2006 18:57:01 +0000 (18:57 +0000)]
Correct a user-visible typo.

18 years agoGratuitous "typo in comment" fix.
Ceri Davies [Sun, 5 Feb 2006 18:49:52 +0000 (18:49 +0000)]
Gratuitous "typo in comment" fix.

18 years agoBring these files somewhat into the present.
Ceri Davies [Sun, 5 Feb 2006 18:46:46 +0000 (18:46 +0000)]
Bring these files somewhat into the present.
Perform some rewording while here.

Remove register.hlp, since the code that deals with it was removed
nearly 7 years ago.

18 years agoChange group for /var/audit to audit, so that audit review can be
Robert Watson [Sun, 5 Feb 2006 18:22:56 +0000 (18:22 +0000)]
Change group for /var/audit to audit, so that audit review can be
delegated to non-administrators.

Obtained from: TrustedBSD Project

18 years agoAllocate an 'audit' group, membership in which will grant the audit
Robert Watson [Sun, 5 Feb 2006 18:04:39 +0000 (18:04 +0000)]
Allocate an 'audit' group, membership in which will grant the audit
review right by virtue of read file permission on /var/audit and its
contents.

Obtained from: TrustedBSD Project

18 years agoConvert NULL checks into KASSERT (and move them before the first
Alexander Leidinger [Sun, 5 Feb 2006 17:47:26 +0000 (17:47 +0000)]
Convert NULL checks into KASSERT (and move them before the first
dereferencing) since a NULL value would be a bug here.

Note: Both affected functions look very similar. A refactoring may
be beneficial.

CID: 483, 485
Found with: Coverity Prevent(tm)
Discussed with: ariff
MFC after: 5 days

18 years agoan driver not endian clean, so don't enable on sparc64
Warner Losh [Sun, 5 Feb 2006 17:38:28 +0000 (17:38 +0000)]
an driver not endian clean, so don't enable on sparc64

18 years agoforced commit: previous commit was CID 429
Alexander Leidinger [Sun, 5 Feb 2006 17:35:13 +0000 (17:35 +0000)]
forced commit: previous commit was CID 429

18 years agoforced commit: previous commit was CID 483
Alexander Leidinger [Sun, 5 Feb 2006 17:34:13 +0000 (17:34 +0000)]
forced commit: previous commit was CID 483

18 years agoA pointer was checked for NULL after dereferencing it. The check is not
Alexander Leidinger [Sun, 5 Feb 2006 17:33:18 +0000 (17:33 +0000)]
A pointer was checked for NULL after dereferencing it. The check is not
needed here, except there's a bug which results in detaching the device
twice.

Move the NULL pointer check to the beginning of the function and convert
it into a KASSERT.

CID: 420
Found with: Coverity Prevent(tm)
Discussed with: ariff
MFC after: 5 days

18 years agoMake pflog a seperate module. As a result pflog_packet() becomes a function
Max Laier [Sun, 5 Feb 2006 17:17:32 +0000 (17:17 +0000)]
Make pflog a seperate module.  As a result pflog_packet() becomes a function
pointer that is declared in pf_ioctl.c

Requested by: yar (as part of the module build reorg)
MFC after: 1 week
X-MFC with: yar's module reorg

18 years agoFix memory leak in some failure cases.
Alexander Leidinger [Sun, 5 Feb 2006 17:10:52 +0000 (17:10 +0000)]
Fix memory leak in some failure cases.

CID: 420
Found with: Coverity Prevent(tm)

18 years agoAdd AUDITVNODE[12] flags to namei(), which cause namei() to audit path
Robert Watson [Sun, 5 Feb 2006 15:42:01 +0000 (15:42 +0000)]
Add AUDITVNODE[12] flags to namei(), which cause namei() to audit path
and vnode attribute information for looked up vnodes during the lookup
operation.  This will allow consumers of namei() to specify that this
information be added to the in-process audit record.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

18 years agoshut up strict-aliasing rules warning.
Hajimu UMEMOTO [Sun, 5 Feb 2006 09:52:40 +0000 (09:52 +0000)]
shut up strict-aliasing rules warning.

18 years agoMove asr driver from global NOTES to i386-specific NOTES. Requestor
Ken Smith [Sun, 5 Feb 2006 05:06:04 +0000 (05:06 +0000)]
Move asr driver from global NOTES to i386-specific NOTES.  Requestor
reports it is neither endian-clean or 64-bit clean.  :-)

Requested by: scottl

18 years agoSquash a couple more invalid long casts.
Scott Long [Sun, 5 Feb 2006 05:05:27 +0000 (05:05 +0000)]
Squash a couple more invalid long casts.

18 years agoNow, thread name is stored in kernel, userland no longer has to keep it.
David Xu [Sun, 5 Feb 2006 03:04:54 +0000 (03:04 +0000)]
Now, thread name is stored in kernel, userland no longer has to keep it.

18 years agouse syscall thr_set_name to implement pthread_set_name_np.
David Xu [Sun, 5 Feb 2006 02:26:17 +0000 (02:26 +0000)]
use syscall thr_set_name to implement pthread_set_name_np.

18 years agoRegenerate.
David Xu [Sun, 5 Feb 2006 02:23:41 +0000 (02:23 +0000)]
Regenerate.

18 years agoImplement thr_set_name to set a name for thread.
David Xu [Sun, 5 Feb 2006 02:18:46 +0000 (02:18 +0000)]
Implement thr_set_name to set a name for thread.

Reviewed by: julian

18 years agoImport support for the Atmel AT91RM9200 CPU/Microcontroller. This SoC
Warner Losh [Sat, 4 Feb 2006 23:32:13 +0000 (23:32 +0000)]
Import support for the Atmel AT91RM9200 CPU/Microcontroller.  This SoC
is a ARM920T based CPU with a bunch of built-in peripherals.  The
inital import supports the SPI bus, the TWI bus (although iicbus
integration is not complete), the uarts, the system timer and the
onboard ethernet.  Support for the Kwikbyte KB9202
(http://www.kwikbyte.com) board is also included, although there's no
reason why the 9200 and the 9201 wouldn't also work.  Primitive
support for running under the skyeye emulator is also provided
(although skyeye's support for the AT91RM9200 is a little weak).

The code has been structured so that other members of Atmel's arm family can
be supported in the future.  The AT91SAM9260 is not presently supported
due to lack of hardware.  The arm7tdmi families are also not supported
becasue they lack an MMU.

Many thanks to cognet@ for his help and assistance in bringing up this
board.  He did much of the vm work and wrote parts of the uart and
system timer code as well as the bus space implementation.

The system boots to single user w/o problem, although the serial
console is a little slow and the ethernet driver is still in flux.

This work was sponsored by Timing Solutions, Corporation.  I am
grateful to their support of the FreeBSD project in this manner.

18 years agoEnable getty(8) on ttyu2 by default in order to get machines that use a
Marius Strobl [Sat, 4 Feb 2006 23:30:09 +0000 (23:30 +0000)]
Enable getty(8) on ttyu2 by default in order to get machines that use a
RSC (Remote System Control) connected via uart2 as console working out
of the box. On machines that use uart2 to connect a keyboard and thus
the ttyu2 node doesn't exist this will trigger a warning from getty(8)
but cause no real harm.

MFC after: 1 week

18 years ago- Add support for using LOM (Lights Out Management) and RSC (Remote System
Marius Strobl [Sat, 4 Feb 2006 23:27:16 +0000 (23:27 +0000)]
- Add support for using LOM (Lights Out Management) and RSC (Remote System
  Control) devices as console. These are microcontrollers which are either
  on-board or part of an add-on card and provide terminal server, remote
  power switch and monitoring functionality. For console usage these are
  connected to the rest of the system via a SCC or an UART. This commit adds
  support for the following variants (corresponds to what 'input-device' and
  'output-device' have to be set to):
  rsc found on-board in E250 and supposedly some Netra, connected
via a SAB82532, com. parameters can be determined via OFW
  rsc-console RSC card found in E280R, Fire V4x0, Fire V8x0, connected
via a NS16550, hardwired to 115200 8N1
  lom-console LOMlite2 card found in Netra 20/T4, connected via a NS16550,
hardwired to 9600 8N1

- Add my copyright to uart_cpu_sparc64.c as I've rewritten about one third
  of that file over time.

Tested on: E250, E280R
Thanks to: dwhite@ for providing access to an E280R
OK'ed by: marcel
MFC after: 1 week

18 years agoSilence the strict-alias warnings. Make a trip through (void *) when
Warner Losh [Sat, 4 Feb 2006 22:51:03 +0000 (22:51 +0000)]
Silence the strict-alias warnings.  Make a trip through (void *) when
casting a structure to a uint32_t *.  Many drivers in the tree do this, but
I'll not update them until these changes can be reviewed by the pedantic
standards folks.

18 years agoRemove an unnecessary call to pmap_remove_all(). The given page is not
Alan Cox [Sat, 4 Feb 2006 22:37:10 +0000 (22:37 +0000)]
Remove an unnecessary call to pmap_remove_all().  The given page is not
mapped because its contents are invalid.

18 years agoType of overrun_buf doesn't matter to this code, but does to gcc.
Warner Losh [Sat, 4 Feb 2006 22:33:08 +0000 (22:33 +0000)]
Type of overrun_buf doesn't matter to this code, but does to gcc.
Make it a void *.

18 years agoPerform minor rewording and grammatical improvement. Add a missing Xr.
Ceri Davies [Sat, 4 Feb 2006 22:17:38 +0000 (22:17 +0000)]
Perform minor rewording and grammatical improvement.  Add a missing Xr.

18 years agoUse void * for pointer rather than u_int8_t *, since it doesn't
Warner Losh [Sat, 4 Feb 2006 22:14:20 +0000 (22:14 +0000)]
Use void * for pointer rather than u_int8_t *, since it doesn't
matter.  Well it does for type punning warnings.

18 years agoNow that TUNABLE_ULONG is in the tree, and has been for a while, use it.
Warner Losh [Sat, 4 Feb 2006 21:56:14 +0000 (21:56 +0000)]
Now that TUNABLE_ULONG is in the tree, and has been for a while, use it.
This also avoids typepunning.

18 years agoDon't type pun accidentally. Instead, be explicit that we're type
Warner Losh [Sat, 4 Feb 2006 21:37:39 +0000 (21:37 +0000)]
Don't type pun accidentally.  Instead, be explicit that we're type
punning with an union so that the compiler knows.

18 years agoRemove reference to non-existant manpage.
Christian Brueffer [Sat, 4 Feb 2006 21:10:48 +0000 (21:10 +0000)]
Remove reference to non-existant manpage.

Confirmed by: rwatson

18 years agoCall the audit syscall enter/exit functions for the amd64 architecture,
Wayne Salamon [Sat, 4 Feb 2006 20:37:20 +0000 (20:37 +0000)]
Call the audit syscall enter/exit functions for the amd64 architecture,
both 32-bit and 64-bit paths. System calls will now be audited.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoMake login audit-enabled, submitting audit records for the login and logout
Wayne Salamon [Sat, 4 Feb 2006 20:20:02 +0000 (20:20 +0000)]
Make login audit-enabled, submitting audit records for the login and logout
events. The specifics of submitting the records is contained within
login_audit.c.
Document the auditing behavior in the man page.

Obtained from: TrustedBSD Project, Apple Computer, Inc.
Approved by: rwatson (mentor)

18 years agoWhen ndis_attach() runs, it has to very briefly initialize the card
Bill Paul [Sat, 4 Feb 2006 19:42:49 +0000 (19:42 +0000)]
When ndis_attach() runs, it has to very briefly initialize the card
in order to query the underlying Windows driver for the station address
and some other properties. There is a slim chance that the card may
receive a packet and indicate it up to us before ndis_attach() can call
ndis_halt_nic(). This is bad, because both the softc structure and
the ifnet structure aren't fully initialized yet: many pointers are
still NULL, so if we make it into ndis_rxeof(), we will panic.

To fix this, we need to do the following:

- Move the calls to IoAllocateWorkItem() to before the call to ndis_init_nic().
- Move the initialization of the RX DPC and status callback function pointers
  to before ndis_init_nic() as well.
- Modify ndis_rxeof() to check if the IFF_DRV_RUNNING flag is set. If it
  isn't, we return any supplied NDIS_PACKETs to the NIC without processing
  them.

This fixes a crash than can occur when activating a wireless NIC in
close proximity to a very busy wireless network, reported by Ryan
Beasley (ryan%^$!ATgoddamnbastard-****!!!DOTorg.

MFC after: 3 days

18 years agoAdd a brief FREEBSD-upgrade file to provide direction on how to perform
Robert Watson [Sat, 4 Feb 2006 18:29:51 +0000 (18:29 +0000)]
Add a brief FREEBSD-upgrade file to provide direction on how to perform
OpenBSM upgrades.  Right now, this is very easy, but in the future it
will probably become more complicated.

18 years agoAdd a -A argument to mergemaster to allow explicitly specifying an
Robert Watson [Sat, 4 Feb 2006 18:24:06 +0000 (18:24 +0000)]
Add a -A argument to mergemaster to allow explicitly specifying an
architecture to pass through to the underlying makefiles.  This is
quite useful when building on an i386 box to populate an amd64 NFS
root.

Head nod: dougb
MFC after: 1 week

18 years agoDon't forget to set the address of the next descriptor to 0 when we're
Olivier Houchard [Sat, 4 Feb 2006 18:01:15 +0000 (18:01 +0000)]
Don't forget to set the address of the next descriptor to 0 when we're
zeroing a physical page, or we could end up re-zeroing portions of
memory we have zeroed before, which is clearly not wanted.

18 years agoSquash another use of vtophys. Instead of creating separate busdma objects
Scott Long [Sat, 4 Feb 2006 17:56:17 +0000 (17:56 +0000)]
Squash another use of vtophys.  Instead of creating separate busdma objects
for doing static memory transfers, start collecting them into a single
object.

18 years agoMFi386:
Olivier Houchard [Sat, 4 Feb 2006 17:01:19 +0000 (17:01 +0000)]
MFi386:
revision 1.288
date: 2006/02/04 14:11:33;  author: wsalamon;  state: Exp;  lines: +4 -1
Hook up the audit system to system call entry and exit. System calls will
now be audited.

Obtained from:  TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoNow that the em driver no longer needs to directly touch the scheduler, remove some
Scott Long [Sat, 4 Feb 2006 16:50:14 +0000 (16:50 +0000)]
Now that the em driver no longer needs to directly touch the scheduler, remove some
unneeded headers.

18 years agoInitialize PWD early on (don't expect it to be inherited from the
Jens Schweikhardt [Sat, 4 Feb 2006 14:47:19 +0000 (14:47 +0000)]
Initialize PWD early on (don't expect it to be inherited from the
environment or set it only when changing directories with cd).

PR: standards/92640

18 years agos/staticly/statically/g
Jens Schweikhardt [Sat, 4 Feb 2006 14:41:27 +0000 (14:41 +0000)]
s/staticly/statically/g

18 years agos/varable/variable/; s/tored/stored/
Jens Schweikhardt [Sat, 4 Feb 2006 14:38:37 +0000 (14:38 +0000)]
s/varable/variable/; s/tored/stored/

18 years agoRemove some white space at EOL.
Jens Schweikhardt [Sat, 4 Feb 2006 14:37:50 +0000 (14:37 +0000)]
Remove some white space at EOL.

18 years agoRemove spurious "union arg" from printf.h
Poul-Henning Kamp [Sat, 4 Feb 2006 14:35:01 +0000 (14:35 +0000)]
Remove spurious "union arg" from printf.h

Make sure to always print something in the alternate time format.

18 years agoHook up the audit system to system call entry and exit. System calls will
Wayne Salamon [Sat, 4 Feb 2006 14:11:33 +0000 (14:11 +0000)]
Hook up the audit system to system call entry and exit. System calls will
now be audited.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoCreate childproc_jobstate function to report job control state, this
David Xu [Sat, 4 Feb 2006 14:10:57 +0000 (14:10 +0000)]
Create childproc_jobstate function to report job control state, this
also fixes a bug in childproc_continued which ignored PS_NOCLDSTOP.

18 years agoAssign audit identifiers to alpha/linux system calls so that they will
Robert Watson [Sat, 4 Feb 2006 14:03:22 +0000 (14:03 +0000)]
Assign audit identifiers to alpha/linux system calls so that they will
be audited.

Obtained from: TrustedBSD Project

18 years agoAutogenerate hardware notes for the ce(4) driver.
Christian Brueffer [Sat, 4 Feb 2006 13:42:07 +0000 (13:42 +0000)]
Autogenerate hardware notes for the ce(4) driver.

18 years agoRegenerate.
Robert Watson [Sat, 4 Feb 2006 13:29:09 +0000 (13:29 +0000)]
Regenerate.

18 years agoAudit FreeBSD 32-bit system calls on 64-bit FreeBSD systems.
Robert Watson [Sat, 4 Feb 2006 13:28:55 +0000 (13:28 +0000)]
Audit FreeBSD 32-bit system calls on 64-bit FreeBSD systems.

Obtained from: TrustedBSD Project

18 years agoMerge OpenBSM 1.0 alpha 2 kernel audit events into src/sys/bsm. Almost
Robert Watson [Sat, 4 Feb 2006 13:22:44 +0000 (13:22 +0000)]
Merge OpenBSM 1.0 alpha 2 kernel audit events into src/sys/bsm.  Almost
entirely new audit event identifiers for FreeBSD, Linux, and POSIX.1b
system calls.

Obtained from: TrustedBSD Project

18 years agoImport OpenBSM 1.0 alpha 2, a minor update on alpha 1:
Robert Watson [Sat, 4 Feb 2006 13:17:48 +0000 (13:17 +0000)]
Import OpenBSM 1.0 alpha 2, a minor update on alpha 1:

- Man page formatting improvements.
- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b
  events.
- Remove 'tfm' class, unused in OpenBSM.

Obtained from: TrustedBSD Project

18 years agoThis commit was generated by cvs2svn to compensate for changes in r155290,
Robert Watson [Sat, 4 Feb 2006 13:17:48 +0000 (13:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r155290,
which included commits to RCS files with non-trunk default branches.

18 years agoPatch to allow XBox-users to use the onboard nve(4) nForce ethernet driver.
Rink Springer [Sat, 4 Feb 2006 10:01:33 +0000 (10:01 +0000)]
Patch to allow XBox-users to use the onboard nve(4) nForce ethernet driver.

The patch crudely forces the NIC out of operating mode before the nve(4)
driver can initialize it; this is required to properly initialize the NIC.

It is XBox-specific, as this condition can only occur on XBoxes (Most loaders
will simply leave the NIC running, forcing us to use a crude workaround like
this to get it in a workable condition). Due to the XBox-only aspect, this has
been solved in XBox-specific initialization code and not within nve(4).

Reviewed by: imp
Approved by: imp (mentor)
No objection: bz@, obrien@, q@ontheweb.com.au

18 years agoThe function isspace does not take a string argument. I have no idea how
Doug Rabson [Sat, 4 Feb 2006 09:40:21 +0000 (09:40 +0000)]
The function isspace does not take a string argument. I have no idea how
this compiled before; it only worked by accident.

18 years agoAdd the start of busdma infrastructure to this driver. Convert the
Scott Long [Sat, 4 Feb 2006 08:45:19 +0000 (08:45 +0000)]
Add the start of busdma infrastructure to this driver.  Convert the
ASR_resetIOPR function to use it.

18 years agoActually, no, I had it wrong in 1.109. The arguments to bus_dma_create_tag
Matt Jacob [Sat, 4 Feb 2006 08:39:02 +0000 (08:39 +0000)]
Actually, no, I had it wrong in 1.109. The arguments to bus_dma_create_tag
are bus_addr_t, not bus_size_t.

In any case, turn off DAC support entirely until it is revamped to actually
work *correctly* for 64 bit platforms (not using a PAE definition and for
both initiator and target mode).

18 years agoNow that the U32 type is a really 32-bits wide, eliminate a bunch of other
Scott Long [Sat, 4 Feb 2006 08:20:23 +0000 (08:20 +0000)]
Now that the U32 type is a really 32-bits wide, eliminate a bunch of other
bad assumptions and long values.

18 years agoFix mismerge after last cvs update for the IFQ_DRV_DEQUEUE changes.
Warner Losh [Sat, 4 Feb 2006 08:19:00 +0000 (08:19 +0000)]
Fix mismerge after last cvs update for the IFQ_DRV_DEQUEUE changes.

18 years agoRemove ifdef notyet SIOCGHWADDR vestige.
Warner Losh [Sat, 4 Feb 2006 08:16:41 +0000 (08:16 +0000)]
Remove ifdef notyet SIOCGHWADDR vestige.

18 years agoRemove ifdef notdef SIOCHWADDR vestige.
Warner Losh [Sat, 4 Feb 2006 08:16:07 +0000 (08:16 +0000)]
Remove ifdef notdef SIOCHWADDR vestige.

18 years agoRemove ifdef notyet for SIOCGHWADDR
Warner Losh [Sat, 4 Feb 2006 08:15:29 +0000 (08:15 +0000)]
Remove ifdef notyet for SIOCGHWADDR
Treat SIOCADDMULTI and SIOCDELMULTI the same, since they had the same code
Remove redundant assignment to error
Convert to using the altq interface completely.

18 years agos/bin/sbin/ for mount_nwfs, mount_portalfs and mount_smbfs. They never
Tai-hwa Liang [Sat, 4 Feb 2006 08:07:00 +0000 (08:07 +0000)]
s/bin/sbin/ for mount_nwfs, mount_portalfs and mount_smbfs.  They never
lived in bin since 1994.
Whilst here, also document the removal time of aforementioned utilities
as well.

MFC after: 1 week

18 years agoGive correct definitions to some basic types.
Scott Long [Sat, 4 Feb 2006 08:01:49 +0000 (08:01 +0000)]
Give correct definitions to some basic types.

18 years agoNever select the PCB that has INP_IPV6 flag and is bound to :: if
Hajimu UMEMOTO [Sat, 4 Feb 2006 07:59:17 +0000 (07:59 +0000)]
Never select the PCB that has INP_IPV6 flag and is bound to :: if
we have another PCB which is bound to 0.0.0.0.  If a PCB has the
INP_IPV6 flag, then we set its cost higher than IPv4 only PCBs.

Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Obtained from: KAME
MFC after: 1 week

18 years agoAxe unused code.
David Xu [Sat, 4 Feb 2006 06:36:39 +0000 (06:36 +0000)]
Axe unused code.

18 years agoFix minor inconsistancy between kernel built modules and stand-alone
Warner Losh [Sat, 4 Feb 2006 06:22:27 +0000 (06:22 +0000)]
Fix minor inconsistancy between kernel built modules and stand-alone
built buildes.  I believe this gives the same flags on the command
line for both.

18 years agoFix a possible memory leak in asr_attach.
Scott Long [Sat, 4 Feb 2006 06:08:19 +0000 (06:08 +0000)]
Fix a possible memory leak in asr_attach.

18 years agoi386/PAE defines bus_size_t to be 32-bits when it likely should be 64-bits.
Scott Long [Sat, 4 Feb 2006 03:41:48 +0000 (03:41 +0000)]
i386/PAE defines bus_size_t to be 32-bits when it likely should be 64-bits.
Fixing it is left for another day, so just hack around it for now.

18 years agoFix calculation of the number of arenas to use on multi-processor systems.
Jason Evans [Sat, 4 Feb 2006 01:11:30 +0000 (01:11 +0000)]
Fix calculation of the number of arenas to use on multi-processor systems.