]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMFC: sys/netinet6/ipsec.c 1.45
pjd [Mon, 4 Sep 2006 10:35:07 +0000 (10:35 +0000)]
MFC: sys/netinet6/ipsec.c 1.45

- Use suser_cred(9) instead of directly comparing cr_uid.
- Compare pointer with NULL, instead of 0.

Reviewed by: rwatson

17 years agoMFC: sys/netinet6/in6_pcb.c 1.71
pjd [Mon, 4 Sep 2006 10:33:44 +0000 (10:33 +0000)]
MFC: sys/netinet6/in6_pcb.c 1.71

- Use suser_cred(9) instead of directly checking cr_uid.
- Change the order of conditions to first verify that we actually need
  to check for privileges and then eventually check them.

Reviewed by: rwatson

17 years agoMFC: sys/netinet/in_pcb.c 1.178
pjd [Mon, 4 Sep 2006 10:31:53 +0000 (10:31 +0000)]
MFC: sys/netinet/in_pcb.c 1.178

- Use suser_cred(9) instead of directly checking cr_uid.
- Change the order of conditions to first verify that we actually need
  to check for privileges and then eventually check them.

Reviewed by: rwatson

17 years agoMFC: sys/kern/kern_descrip.c 1.295
pjd [Mon, 4 Sep 2006 10:30:09 +0000 (10:30 +0000)]
MFC: sys/kern/kern_descrip.c 1.295

Compress direct cr_ruid comparsion and jailed() call to suser_cred(9).

Reviewed by: rwatson

17 years agoMFC: sys/kern/kern_ktrace.c 1.109
pjd [Mon, 4 Sep 2006 10:28:26 +0000 (10:28 +0000)]
MFC: sys/kern/kern_ktrace.c 1.109

Use suser_cred(9) instead of checking cr_uid directly.

Reviewed by: rwatson

17 years agoMFC: sys/kern/kern_fork.c 1.259
pjd [Mon, 4 Sep 2006 10:26:17 +0000 (10:26 +0000)]
MFC: sys/kern/kern_fork.c 1.259

- Use suser_cred(9) instead of checking cr_ruid directly.
- For privileged processes safe two mutex operations.

We may want to consider if this is good idea to use SUSER_ALLOWJAIL here,
but for now I didn't wanted to change the original behaviour.

Reviewed by: rwatson

17 years agoMFC: sys/ufs/ffs/ffs_snapshot.c 1.121
pjd [Mon, 4 Sep 2006 10:05:25 +0000 (10:05 +0000)]
MFC: sys/ufs/ffs/ffs_snapshot.c 1.121

- Set bio_done directly to NULL to indicate that we want to wait for the bio.
- Use biowait() instead of copying the code.

17 years agoMFC: sys/kern/vfs_vnops.c 1.242
pjd [Mon, 4 Sep 2006 10:01:35 +0000 (10:01 +0000)]
MFC: sys/kern/vfs_vnops.c 1.242

vn_start_write() is called only when v_type != VCHR, so corresponding
vn_finished_write() should also be called only then.

17 years agoMFC: sys/kern/vfs_subr.c 1.680,1.681
pjd [Mon, 4 Sep 2006 09:58:25 +0000 (09:58 +0000)]
MFC: sys/kern/vfs_subr.c 1.680,1.681

Add a bandaid to avoid a deadlock in a situation, when we are trying to suspend
a file system, but need to obtain a vnode. We may not be able to do it, because
all vnodes could be already in use and other processes cannot release them,
because they are waiting in "suspfs" state.

In such situation, we allow to allocate a vnode anyway.

This is a temporary fix - there is no backpressure to free vnodes allocated in
those circumstances.

Reviewed by: tegge

17 years agoMFC: sys/kern/kern_event.c 1.100-1.102
pjd [Mon, 4 Sep 2006 09:53:28 +0000 (09:53 +0000)]
MFC: sys/kern/kern_event.c 1.100-1.102

- Use SLIST_FOREACH_SAFE() macro, because knote_drop() can free an element
  which can be then used to find next element in the list.
- Remove confusing done_noglobal label. The KQ_GLOBAL_UNLOCK() macro know
  how to handle both situations - when kq_global lock is and is not held.
- Don't forget to unlock kq lock in low memory situations.

OK'ed by: jmg

17 years agoMFC: rev. 1.508
brueffer [Mon, 4 Sep 2006 06:14:57 +0000 (06:14 +0000)]
MFC: rev. 1.508

Don't build iwi(4) on amd64, there are problems with the firmware modules.

Approved by: rwatson (mentor)

17 years agoMerge audit.h:1.9 from HEAD to RELENG_6:
rwatson [Mon, 4 Sep 2006 06:07:51 +0000 (06:07 +0000)]
Merge audit.h:1.9 from HEAD to RELENG_6:

  White space cleanup.

17 years agoRestore the expected and documented pre rev. 1.36 behavior of
marius [Sun, 3 Sep 2006 18:16:45 +0000 (18:16 +0000)]
Restore the expected and documented pre rev. 1.36 behavior of
giving preference to pcn(4). Take precedence over le(4) though,
as le(4) isn't meant to supersede lnc(4) in this branch (yet).

17 years agoMFC: 1.23
brooks [Sun, 3 Sep 2006 17:32:32 +0000 (17:32 +0000)]
MFC: 1.23

/etc/crontab is similar enough to parse as correct if you run
"crontab /etc/crontab", but not the same format due to the who field.
Add some limited anti-foot-shooting support and refuse to load
/etc/crontab as someone's crontab.  Users wishing shoot their foot in
this manner may copy /etc/crontab elsewhere. :)

17 years ago- Add a deprecation note since this driver was replaced by le(4)
marius [Sun, 3 Sep 2006 17:11:27 +0000 (17:11 +0000)]
- Add a deprecation note since this driver was replaced by le(4)
  in HEAD. [1]
- Remove Digital DEPCA from the list of supported hardware; DEPCA
  cards use shared memory for the buffers and descriptors but the
  current ISA front-end of lnc(4) only knows about adapters that
  use DMA instead (lnc(4) did support DEPCA in the past though).

Reviewed by: ru [1]

17 years agoMFC: sys/geom/geom.h 1.94
pjd [Sun, 3 Sep 2006 16:28:40 +0000 (16:28 +0000)]
MFC: sys/geom/geom.h 1.94
sys/geom/geom_io.c 1.70

Add g_duplicate_bio() function which does the same thing what g_clone_bio()
is doing, but g_duplicate_bio() allocates new bio with M_WAITOK flag.

17 years agoMFC: share/man/man9/Makefile 1.276
pjd [Sun, 3 Sep 2006 16:21:25 +0000 (16:21 +0000)]
MFC: share/man/man9/Makefile 1.276
share/man/man9/sx.9 1.34

Document sx_xlocked(9).

Submitted by: ssouhlal

17 years agoMFC: sys/geom/geom.h 1.95
pjd [Sun, 3 Sep 2006 16:15:57 +0000 (16:15 +0000)]
MFC: sys/geom/geom.h 1.95

Only check if we're freeing a valid object if we hold the topology lock.
This prevents panic under heavy load with DIAGNOSTIC compiled in.

17 years agoMFC: sys/sys/sx.h 1.24
pjd [Sun, 3 Sep 2006 16:13:04 +0000 (16:13 +0000)]
MFC: sys/sys/sx.h 1.24

Add a sx_xlocked() macro which returns true if the current thread holds an
exclusive lock on the specified sx lock.

Commit to HEAD by: jhb

17 years agoMFC 1.3:
delphij [Sun, 3 Sep 2006 16:10:31 +0000 (16:10 +0000)]
MFC 1.3:

In rev. 1.2 we have introduced a fallback handler for files with unknown
extensions.  This seems to be unnecessary and prevents less(1) from being
able to detect file changes, so remove the part.

Submitted by: Eric Huss <e-huss netmeridian com>
PR: bin/102624
Discussed with: des

17 years agoMFC: tools/tools/crypto/ubsecstats.c 1.4
pjd [Sun, 3 Sep 2006 16:02:37 +0000 (16:02 +0000)]
MFC: tools/tools/crypto/ubsecstats.c 1.4

Add missing stats.hst_nodesc statistics.

17 years agoRegenerate.
rwatson [Sun, 3 Sep 2006 13:48:48 +0000 (13:48 +0000)]
Regenerate.

17 years agoAssign audit event identifiers to many common system calls.
rwatson [Sun, 3 Sep 2006 13:48:26 +0000 (13:48 +0000)]
Assign audit event identifiers to many common system calls.

Obtained from: TrustedBSD Project

17 years agoMFC: 1.53: Add entry for libbsm.
ru [Sun, 3 Sep 2006 11:53:38 +0000 (11:53 +0000)]
MFC: 1.53: Add entry for libbsm.

17 years agoMFC: rev. 1.27
brueffer [Sun, 3 Sep 2006 11:42:55 +0000 (11:42 +0000)]
MFC: rev. 1.27

Add Epson Stylus CX3650.

17 years agoMFC: rev. 1.65 - 1.67
brueffer [Sun, 3 Sep 2006 11:39:10 +0000 (11:39 +0000)]
MFC: rev. 1.65 - 1.67

Document ServerWorks HT1000, Intel ICH8 and ESB2 and VIA 8237A support.

17 years agoMerge kern_exec.c:1.293,1.295, kern_acct.c:1.82, vfs_mount.c:1.227 from
rwatson [Sun, 3 Sep 2006 09:21:59 +0000 (09:21 +0000)]
Merge kern_exec.c:1.293,1.295, kern_acct.c:1.82, vfs_mount.c:1.227 from
HEAD to RELENG_6:

  In execve(), audit the path name being executed.  In the future, it
  would also be good to audit the interpreter pathname, if any.

  Audit the argv and env vectors passed in on exec:
    Add the argument auditing functions for argv and env.
    Add kernel-specific versions of the tokenizer functions for the
    arg and env represented as a char array.
    Implement the AUDIT_ARGV and AUDIT_ARGE audit policy commands to
    enable/disable argv/env auditing.
    Call the argument auditing from the exec system calls.

  Audit path passed to the acct() system call.

  Audit some arguments to nmount(), mount(), umount().

Obtained from: TrustedBSD Project

17 years agoMerge mkioctls:1.38 from HEAD to RELENG_6:
rwatson [Sun, 3 Sep 2006 08:29:20 +0000 (08:29 +0000)]
Merge mkioctls:1.38 from HEAD to RELENG_6:

  Add audit.h to mkioctls inclusion list: audit pipe ioctls need access
  to the audit types.

Obtained from: TrustedBSD Project

17 years agoMerge BSD.include.dist:1.106, include/Makefile:1.258 from HEAD to
rwatson [Sun, 3 Sep 2006 08:09:58 +0000 (08:09 +0000)]
Merge BSD.include.dist:1.106, include/Makefile:1.258 from HEAD to
RELENG_6:

  Do install sys/security/audit include files.  It would be nice just
  to install audit_ioctl.h, but we seem only to support installing
  directories, so we get them all.  The two not intended for extra-
  kernel use have !_KERNEL #error's, which should help.

Obtained from: TrustedBSD Project

17 years agoMerge kern_sig.c:1.322, sys_process.c:1.136, vfs_vnops.c:1.238 from HEAD
rwatson [Sun, 3 Sep 2006 08:06:59 +0000 (08:06 +0000)]
Merge kern_sig.c:1.322, sys_process.c:1.136, vfs_vnops.c:1.238 from HEAD
to RELENG_6:

  Audit the arguments to the kill(2) and killpg(2) system calls.

  Audit the arguments to the ptrace(2) system call.

  Make sure that we are adding a path token to the audit record in open(2).
  Do this by making sure we are using the AUDITVNODE1 mask in the namei
  flags.

Obtained from: TrustedBSD Project

17 years agoMerge vfs_syscalls.c:1.408, 1.415, 1.416:
rwatson [Sun, 3 Sep 2006 07:53:40 +0000 (07:53 +0000)]
Merge vfs_syscalls.c:1.408, 1.415, 1.416:

  Add pathname and/or vnode argument auditing for the following system
  calls:

  quotactl, statfs, fstatfs, fchdir, chdir, chroot, open, mknod, mkfifo,
  link, symlink, undelete, unlink, access, eaccess, stat, lstat, pathconf,
  readlink, chflags, lchflags, fchflags, chmod, lchmod, fchmod, chown,
  lchown, fchown, utimes, lutimes, futimes, truncate, ftruncate, fsync,
  rename, mkdir, rmdir, getdirentries, revoke, lgetfh, getfh, extattrctl,
  extattr_set_file, extattr_set_link, extattr_get_file, extattr_get_link,
  extattr_delete_file, extattr_delete_link, extattr_list_file,
  extattr_list_link.

  In many cases the pathname and vnode auditing is done within namei lookup
  instead of directly in the system call.

  Audit the remaining arguments to these system calls:
  fstatfs, fchdir, open, mknod, chflags, lchflags, fchflags, chmod, lchmod,
  fchmod, chown, lchown, fchown, futimes, ftruncate, fsync, mkdir,
  getdirentries.

  Audit the remaining parameters to the extattr system calls. Generate
  the audit records for those calls.

  Audit command, uid arguments for quotactl().
  Audit the mode argument to mkfifo().
  Audit the target path passed to symlink().

Obtained from: TrustedBSD Project

17 years agoIn kern_fhstatfs(), drop Giant if the prison visibility check fails.
rwatson [Sun, 3 Sep 2006 07:34:00 +0000 (07:34 +0000)]
In kern_fhstatfs(), drop Giant if the prison visibility check fails.
This corrects the same bug found by Todd Miller and corrected as part of
a larger set of Giant changes in vfs_syscalls.c:1.412 in HEAD by jeff.

Pointed out by: Alex Lyashkov <umka at sevcity dot net>

17 years agoDefine TLS_TCB_SIZE, needed by allocate_tls() and free_tls().
marcel [Sun, 3 Sep 2006 05:15:00 +0000 (05:15 +0000)]
Define TLS_TCB_SIZE, needed by allocate_tls() and free_tls().

17 years agoMFC revision 1.76
csjp [Sun, 3 Sep 2006 02:26:48 +0000 (02:26 +0000)]
MFC revision 1.76

Axe kernel panic associated with un-initialized NFS credentials while the
MLS mac policy is loaded.

17 years agoMFC revision 1.92
csjp [Sun, 3 Sep 2006 02:24:47 +0000 (02:24 +0000)]
MFC revision 1.92

This should take care of kernel panics that are a result on non
initialized labels associated with the NFC credential.

17 years agoMFC revision 1.99 nfs_srvsock.c
csjp [Sat, 2 Sep 2006 23:58:21 +0000 (23:58 +0000)]
MFC revision 1.99 nfs_srvsock.c
MFC revision 1.111 mac_vfs.c
MFC revision 1.70 mac.h
MFC revision 1.71 mac_policy.h

MFC the mac_associate_nfsd_label entry point, only replace one of the
mac_policy_ops stub elements to ensure that we dont break compatability
with existing MAC modules.

17 years agoMFC revision 1.79 nfs.h
csjp [Sat, 2 Sep 2006 21:54:08 +0000 (21:54 +0000)]
MFC revision 1.79 nfs.h
MFC revision 1.161 nfs_serv.c
MFC revision 1.96 nfs_srvsock.c
MFC revision 1.105 nfs_syscalls.c

date: 2006/01/28 19:24:39;  author: csjp;  state: Exp;  lines: +1 -1
Manage the ucred for the NFS server using the crget/crfree API defined in
kern_prot.c. This API handles reference counting among many other things.
Notably, if MAC is compiled into the kernel, it will properly initialize the
MAC labels when the ucred is allocated.

This work is in preparation for a new MAC entry point which will be responsible
for properly initializing policy specific labels for the NFS server credential.
Utilization of the crfree/crget APIs reduce the complexity associated with
this label's management.

Submitted by: green (with changes) [1]
Obtained from: TrustedBSD Project
Discussed with: rwatson, alfred

[1] I moved the ucred allocation outside the scope of the NFS server lock to
    prevent M_WAIKOK allocations from occurring with non-sleep-able locks held.
    Additionally, to reduce complexity, the ucred persist as long as the NFS
    server descriptor.

17 years agoMFC: 1.2, 1.3, 1.4
marius [Sat, 2 Sep 2006 21:07:50 +0000 (21:07 +0000)]
MFC: 1.2, 1.3, 1.4

- Use full name of the Sun PGX64 cards and add the Sun part number
  in order to simplify matters for people who are looking for a video
  card supported by FreeBSD/sparc64.
- Add Sun PGX to the list of known working cards.
- s/UltraSparc/UltraSPARC/
- Add info about the requirement of OFW support.

17 years agoMFC: 1.170 (partial)
marius [Sat, 2 Sep 2006 20:41:46 +0000 (20:41 +0000)]
MFC: 1.170 (partial)

- Improve the description of gem(4); the Sun chips it supports are
  termed ERI and GEM rather than GMAC.
- Bring the description of le(4) in line with the current le(4); it
  was still refering to the old i386 ISA-only le(4) which was nuked
  along with ISA_COMPAT while HEAD was FreeBSD 5.
- Add an entry for hme(4).

17 years agoMFC TLS variant I fixes.
marcel [Sat, 2 Sep 2006 20:38:13 +0000 (20:38 +0000)]
MFC TLS variant I fixes.

17 years agoMFC: 1.5, 1.6
marius [Sat, 2 Sep 2006 20:31:55 +0000 (20:31 +0000)]
MFC: 1.5, 1.6

- s/gigabit/Gigabit/
- Talk about supported chips rather than supported cards as the majority
  of the hardware supported by gem(4) is on-board.
- "the .Nm driver"
- Sort the list of supported chips alphabetically.
- Sun GEM aren't used on-board though, so don't claim they'd be.
- Add a CAVEATS section informing that Sun GEM cards aren't supported
  so far.
- Add the usual info about loading as module on startup to the SYNOPSIS.

17 years agoMFC: 1.7
marius [Sat, 2 Sep 2006 20:26:30 +0000 (20:26 +0000)]
MFC: 1.7

Fix spelling in a status message.

17 years agoMFC: 1.6
marius [Sat, 2 Sep 2006 20:22:59 +0000 (20:22 +0000)]
MFC: 1.6

Add missing '?' in "watchdog-enable?".

17 years agoMFC: 1.2
marius [Sat, 2 Sep 2006 20:18:29 +0000 (20:18 +0000)]
MFC: 1.2

Move two periods out of quotes and to where they belong.

17 years agoMFC TLS fixes.
marcel [Sat, 2 Sep 2006 19:41:21 +0000 (19:41 +0000)]
MFC TLS fixes.

17 years agoMFC TLS fixes.
marcel [Sat, 2 Sep 2006 17:49:45 +0000 (17:49 +0000)]
MFC TLS fixes.

17 years agoMFC 1.3: Fix an off-by-one bug.
sam [Sat, 2 Sep 2006 17:42:41 +0000 (17:42 +0000)]
MFC 1.3: Fix an off-by-one bug.

17 years agoMerge kern_descrip.c:1.291, kern_exit.c:1.280, kern_fork.c:1.255,
rwatson [Sat, 2 Sep 2006 17:41:00 +0000 (17:41 +0000)]
Merge kern_descrip.c:1.291, kern_exit.c:1.280, kern_fork.c:1.255,
kern_prot.c:1.202 from HEAD to RELENG_6:

  Add auditing of arguments to the close() and fstat() system calls.

  Audit the pid being requested in wait4().

  Audit the args to rfork(), and the child PID for all fork system calls.

  Audit the arguments (user/group IDs) for the system calls that set these
  IDs.

Obtained from: TrustedBSD Project

17 years agoMFC 1.40: fixup list station support
sam [Sat, 2 Sep 2006 17:40:57 +0000 (17:40 +0000)]
MFC 1.40: fixup list station support

17 years agoMerge make.conf.5:1.130 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 17:37:01 +0000 (17:37 +0000)]
Merge make.conf.5:1.130 from HEAD to RELENG_6:

  Document NO_AUDIT make variable.

Obtained from: TrustedBSD Project

17 years agoMFC 1.12: add debug msg
sam [Sat, 2 Sep 2006 17:32:25 +0000 (17:32 +0000)]
MFC 1.12: add debug msg

17 years agoMFC: sync with head for null ptr deref and static array overflow
sam [Sat, 2 Sep 2006 17:31:08 +0000 (17:31 +0000)]
MFC: sync with head for null ptr deref and static array overflow

17 years agoMerge kern_thread.c:1.226,1.227, kern_exit.c:1.279:
rwatson [Sat, 2 Sep 2006 17:29:57 +0000 (17:29 +0000)]
Merge kern_thread.c:1.226,1.227, kern_exit.c:1.279:

On process and thread exit, submit pending records and free thread audit
state.

Obtained from: TrustedBSD Project

17 years agoMerge vfs_lookup.c:187, namei.h:1.48 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 17:24:36 +0000 (17:24 +0000)]
Merge vfs_lookup.c:187, namei.h:1.48 from HEAD to RELENG_6:

  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.

Obtained from: TrustedBSD Project

17 years agoMFC: sync with head (major rewrite)
sam [Sat, 2 Sep 2006 17:18:34 +0000 (17:18 +0000)]
MFC: sync with head (major rewrite)

17 years agoMerge trap.c:1.288 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 17:12:46 +0000 (17:12 +0000)]
Merge trap.c:1.288 from HEAD to RELENG_6:

  Hook up the audit system to system call entry and exit. System calls will
  now be audited.

Obtained from: TrustedBSD Project

17 years agoMFC: statistics fixups:
sam [Sat, 2 Sep 2006 17:09:26 +0000 (17:09 +0000)]
MFC: statistics fixups:
    o change rssi to be signed in ieee80211_nodestats
    o add noise floor in ieee80211_nodestats (use an implicit hole to
      preserve layout); return it as zero until we can update the api's
      so the driver can provide noise floor data
    o add a bandaid so IEEE80211_IOC_STA_STATS works for sta mode; when
      all nodes are in the station table this will no longer be needed
    o fix braino in IEEE80211_IOC_STA_INFO implementation; was supposed
      to take a mac address and return info for that sta or all stations
      if ff:ff:ff:ff:ff was supplied--but somehow this didn't get implemented;
      implement the intended semantics and leave a compat shim at the old
      ioctl number for the previous api

Note this changes the api for IEEE80211_IOC_STA_INFO but old binaries
will continue to work.  FreeBSD_version bumped so apps can track the
change (no such applications are known to exist but just in case).

17 years agoMFC revision 1.43:
ceri [Sat, 2 Sep 2006 17:08:40 +0000 (17:08 +0000)]
MFC revision 1.43:
  Note that the system only allows a maximum of kern.kq_calloutmax timers.

17 years agoMerge audit/Makefile:1.1, auditd/Makefile:1.1, auditreduce/Makefile:1.1,
rwatson [Sat, 2 Sep 2006 17:02:01 +0000 (17:02 +0000)]
Merge audit/Makefile:1.1, auditd/Makefile:1.1, auditreduce/Makefile:1.1,
praudit/Makefile:1.1, and usr.sbin/Makefile:1.342,1.343,1.345 from HEAD
to RELENG_6:

  Enable building of OpenBSM command line tools:

  - audit(8) - audit subsystem management tool
  - auditd(8) - audit trail and subsystem management daemon
  - auditreduce(1) - audit trail reduction tool
  - praudit(1) - audit trail printing tool

  Build audit command line tools only if NO_AUDIT isn't defined.

Obtained from: TrustedBSD Project

17 years agoMFC: Sync with -current.
sos [Sat, 2 Sep 2006 17:01:32 +0000 (17:01 +0000)]
MFC: Sync with -current.

Dont poll for ATA_IDLE on a detached channel in suspend.
Add support for the Serverworks HT1000 chip.
Finally fix support for the newer MCP51/MCP55 nVidia chipsets.
Add support for the ICH8 and ESB2 chips, also add a few other missing ICH7 partsUpdate JMicron support to also work with chips where the PATA and SATA
parts are on individual PCI functions.
Add support for VIA 8237A.
Add support for AHCI on the VIA VT8251.
Dont call free on non-alloc'd items.

17 years agoMerge src/lib/Makefile:1.211 and src/lib/libbsm/Makefile:1.2-1.3 from
rwatson [Sat, 2 Sep 2006 16:21:26 +0000 (16:21 +0000)]
Merge src/lib/Makefile:1.211 and src/lib/libbsm/Makefile:1.2-1.3 from
HEAD to RELENG_6:

  Add libbsm to the library build.

Obtained from: TrustedBSD Project

17 years agoMFC: sync stats handling
sam [Sat, 2 Sep 2006 15:37:09 +0000 (15:37 +0000)]
MFC: sync stats handling

17 years agoMFC 1.37: start threads stopped before adjusting priority to avoid
sam [Sat, 2 Sep 2006 15:28:09 +0000 (15:28 +0000)]
MFC 1.37: start threads stopped before adjusting priority to avoid
races, generate console msg if thread create fails

17 years agoMFC: minor fixups (mostly statistics)
sam [Sat, 2 Sep 2006 15:16:12 +0000 (15:16 +0000)]
MFC: minor fixups (mostly statistics)

17 years agoMFC 1.42: add per-sta ucast/mcast stats
sam [Sat, 2 Sep 2006 15:06:04 +0000 (15:06 +0000)]
MFC 1.42: add per-sta ucast/mcast stats

17 years agoMerge bsd.libnames.mk:1.96 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:31:17 +0000 (13:31 +0000)]
Merge bsd.libnames.mk:1.96 from HEAD to RELENG_6:

  Define $LIBBSM.

Obtained from: TrustedBSD Project

17 years agoMerge Makefile:1.351,1.352 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:28:52 +0000 (13:28 +0000)]
Merge Makefile:1.351,1.352 from HEAD to RELENG_6:

  Install /etc/security configuration files from OpenBSM.

  Install audit_control and audit_user, both of which are likely to be
  modified by the administrator, as user-writable instead of read-only.

Obtained from: TrustedBSD Project

17 years agoMerge Makefile:1.64, auditd:1.1,1.2 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:27:08 +0000 (13:27 +0000)]
Merge Makefile:1.64, auditd:1.1,1.2 from HEAD to RELENG_6:

  Add auditd rc.d script.

Obtained from: TrustedBSD Project

17 years agoMerge rc.conf:1.273 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:25:29 +0000 (13:25 +0000)]
Merge rc.conf:1.273 from HEAD to RELENG_6:

  Add auditd_enable and auditd_flags rc.d scripts.

Obtained from: TrustedBSD Project

17 years agoMerge kern_exit.c:1.277, kern_fork.c:1.254 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:24:19 +0000 (13:24 +0000)]
Merge kern_exit.c:1.277, kern_fork.c:1.254 from HEAD to RELENG_6:

  Hook up audit to fork() and exit() events.  These changes manage the
  audit state on processes, not auditing of these events.

Obtained from:  TrustedBSD Project

17 years agoMerge init_main.c:1.260 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 13:15:58 +0000 (13:15 +0000)]
Merge init_main.c:1.260 from HEAD to RELENG_6:

  Hook up audit to the initial process creation events (proc0, proc1).

Obtained from:  TrustedBSD Project

17 years agoMerge NOTES:1.1351, files:1.1092,1.1095, and options:1.528 from HEAD
rwatson [Sat, 2 Sep 2006 13:12:08 +0000 (13:12 +0000)]
Merge NOTES:1.1351, files:1.1092,1.1095, and options:1.528 from HEAD
to RELENG_6: hook up audit to the build.

Obtained from: TrustedBSD Project

17 years agoMerge proc.h:1.449 and kern_thread.:1.225 from HEAD to RELENG_6:
rwatson [Sat, 2 Sep 2006 12:48:49 +0000 (12:48 +0000)]
Merge proc.h:1.449 and kern_thread.:1.225 from HEAD to RELENG_6:

  Add new fields to process-related data structures:

  - td_ar to struct thread, which holds the in-progress audit record during
    a system call.

  - p_au to struct proc, which holds per-process audit state, such as the
    audit identifier, audit terminal, and process audit masks.

  In the earlier implementation, td_ar was added to the zero'd section of
  struct thread.  In order to facilitate merging to RELENG_6, it has been
  moved to the end of the data structure, requiring explicit
  initalization in the thread constructor.

Obtained from:  TrustedBSD Project

17 years agoMFC:
glebius [Sat, 2 Sep 2006 12:38:26 +0000 (12:38 +0000)]
MFC:
  o Improve logging of ng_pppoe(4)
  o Fix after turning off the "autosrc feature" of ng_ether(4)

17 years agoBack out prematurely MFC'd audit changes, accidentally MFC'd by jeff in
rwatson [Sat, 2 Sep 2006 12:34:55 +0000 (12:34 +0000)]
Back out prematurely MFC'd audit changes, accidentally MFC'd by jeff in
vfs_syscalls.c:1.392.2.7.

17 years agoMFC ng_ether.c rev. 1.61:
glebius [Sat, 2 Sep 2006 12:34:08 +0000 (12:34 +0000)]
MFC ng_ether.c rev. 1.61:
  Turn off by default "feature" that overwrites MAC address
  on output frames.

  Many people were confused with not working CARP, ng_bridge(4)
  and other subsystems, because ng_ether(4) overwritten source
  MAC address.

17 years agoMerge audit.4:1.8 and auditpipe.4:1.3 from HEAD to RELENG_6. These man
rwatson [Sat, 2 Sep 2006 11:59:31 +0000 (11:59 +0000)]
Merge audit.4:1.8 and auditpipe.4:1.3 from HEAD to RELENG_6.  These man
pages describe the kernel audit and audit pipe facilities.

Obtained from: TrustedBSD Project

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sat, 2 Sep 2006 11:55:39 +0000 (11:55 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMerge audit.c:1.18, audit.h:1.8, audit_arg.c:1.6, audit_bsm.c:1.10,
rwatson [Sat, 2 Sep 2006 11:50:51 +0000 (11:50 +0000)]
Merge audit.c:1.18, audit.h:1.8, audit_arg.c:1.6, audit_bsm.c:1.10,
audit_bsm_klib.c:1.4, audit_bsm_token.c:1.7, audit_ioctl.h:1.4,
audit_pipe.c:1.9, audit_private.h:1.10, audit_syscalls.c:1.5,
audit_trigger.c:1.3, audit_worker.c:1.9 from HEAD to RELENG_6.

This is the MFC of the kernel audit implementation, including argument
gathering functions, worker thread, active audit record queue, system
calls, BSM trail generation code, trigger pseudo-device, and pipe
pseudo-device.  See audit(4) and auditpipe(4) for a detailed description
of the audit subsystem.

Obtained from: TrustedBSD Project

17 years agoMerge audit.h:1.5, audit_kevents.h:1.7, audit_internal.h:1.4, and
rwatson [Sat, 2 Sep 2006 11:35:07 +0000 (11:35 +0000)]
Merge audit.h:1.5, audit_kevents.h:1.7, audit_internal.h:1.4, and
audit_record.h:1.5 from HEAD to RELENG_6.  These correspond to the
files of the same name in OpenBSM 1.0 alpha 10.

Obtained from: TrustedBSD Project

17 years agoMFC addition of FreeBSD 2.0 client code.
cperciva [Sat, 2 Sep 2006 11:05:24 +0000 (11:05 +0000)]
MFC addition of FreeBSD 2.0 client code.

Sponsored by: FreeBSD security development fundraiser
Approved by: re (kensmith)

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sat, 2 Sep 2006 10:49:45 +0000 (10:49 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC OpenBSM 1.0 alpha 10 from HEAD to RELENG_6; OpenBSM is the user space
rwatson [Sat, 2 Sep 2006 10:46:03 +0000 (10:46 +0000)]
MFC OpenBSM 1.0 alpha 10 from HEAD to RELENG_6; OpenBSM is the user space
portion of the TrustedBSD audit implementation, which has now been
settling in 7-CURRENT for several months, and is intended to provide a
Common Criteria/CAPP-compliant fine-grained security event log subsystem.
OpenBSM includes libraries, documentation, configuration files, and audit
audit trail printing and audit trail reduction tools.

This code drop is based on Apple's BSM implementation, implemented by
McAfee Research, and has been substantially enhanced by the TrustedBSD
Project.

Audit support will be considered "experimental" for 6.2-RELEASE.

Obtained from: TrustedBSD Project

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sat, 2 Sep 2006 09:56:29 +0000 (09:56 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC rev. 1.141-1.142
oleg [Sat, 2 Sep 2006 08:07:36 +0000 (08:07 +0000)]
MFC rev. 1.141-1.142
- Do not leak memory while flushing rules.
  Noticed by: yar

- Remove useless NULL pointer check: we are using M_WAITOK flag
  for memory allocation.
  Submitted by: Andrey Elsukov <bu7cher at yandex dot ru>

17 years agoMFC rev 1.23:
marck [Sat, 2 Sep 2006 06:41:55 +0000 (06:41 +0000)]
MFC rev 1.23:

 Chase after phk@: remove reference to (now obsoleted) NMBCLUSTERS.

17 years agoMFC r1.217:
ssouhlal [Sat, 2 Sep 2006 05:42:16 +0000 (05:42 +0000)]
MFC r1.217:
  The "taskqueue_fast" spinlocks were renamed to "fast_taskqueue" in
  subr_taskqueue.c:r1.32

  Reported by:    rdivacky

17 years agoMFC r1.15: "Manual page tweaks."
jkoshy [Sat, 2 Sep 2006 04:35:40 +0000 (04:35 +0000)]
MFC r1.15: "Manual page tweaks."

17 years agoMFC TLS fixes.
marcel [Sat, 2 Sep 2006 01:16:56 +0000 (01:16 +0000)]
MFC TLS fixes.

17 years agoMFC TLS fixes.
marcel [Sat, 2 Sep 2006 00:59:35 +0000 (00:59 +0000)]
MFC TLS fixes.

17 years agoMFC revision 1.4 which silently ignores errors while sourcing rc.conf*
dougb [Fri, 1 Sep 2006 23:58:46 +0000 (23:58 +0000)]
MFC revision 1.4 which silently ignores errors while sourcing rc.conf*
files, simplifies the file rotation logic, and makes it slightly
more secure.

17 years agoMFC rev 1.112: properly set the thread pointer.
marcel [Fri, 1 Sep 2006 22:32:33 +0000 (22:32 +0000)]
MFC rev 1.112: properly set the thread pointer.

17 years agoMFC rev 1.18: Provide stub implementation for bus_space_map().
marcel [Fri, 1 Sep 2006 22:26:28 +0000 (22:26 +0000)]
MFC rev 1.18: Provide stub implementation for bus_space_map().

17 years agoMFC rev 1.5: Fixed FP_R*.
marcel [Fri, 1 Sep 2006 22:19:57 +0000 (22:19 +0000)]
MFC rev 1.5: Fixed FP_R*.

Original fix: bde@

17 years agoDiff reduction: MFC -r1.204.
marcel [Fri, 1 Sep 2006 22:15:57 +0000 (22:15 +0000)]
Diff reduction: MFC -r1.204.

17 years agofix botched MFC of eapol version override
sam [Fri, 1 Sep 2006 20:21:17 +0000 (20:21 +0000)]
fix botched MFC of eapol version override

Reminded by: Dominique Goncalves

17 years agoMFC: 1.77 Fix logic for skipping of idle processes.
se [Fri, 1 Sep 2006 18:12:10 +0000 (18:12 +0000)]
MFC: 1.77 Fix logic for skipping of idle processes.

17 years agoMFC: Expose the _sx_assert() prototype for both INVARIANTS and
jhb [Fri, 1 Sep 2006 16:50:45 +0000 (16:50 +0000)]
MFC: Expose the _sx_assert() prototype for both INVARIANTS and
INVARIANT_SUPPORT.

17 years agoMFC rev 1.58:
yar [Fri, 1 Sep 2006 15:12:39 +0000 (15:12 +0000)]
MFC rev 1.58:

  Recognize the existence of `auth' and `auth-type'
  capabilities but tell they do nothing in the base system.

17 years agoMFC rev 1.6, 1.7:
yar [Fri, 1 Sep 2006 14:32:35 +0000 (14:32 +0000)]
MFC rev 1.6, 1.7:

Install pkill/pgrep to /bin to the benefit of rc scripts.
Create compatibility symlinks from /usr/bin though.

Approved by: re (mux & kensmith)