]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoCorrect incorrect PKCS#1 v1.5 padding validation in crypto(3). [1]
simon [Wed, 6 Sep 2006 21:20:54 +0000 (21:20 +0000)]
Correct incorrect PKCS#1 v1.5 padding validation in crypto(3). [1]

Correct multiple denial-of-service vulnerabilities in BIND related to
SIG Query Processing and Excessive Recursive Queries. [2]

Security: FreeBSD-SA-06:19.openssl [1]
Security: FreeBSD-SA-06:20.bind [2]

17 years agoMFC the audit modifications to login so audit context is properly set and
csjp [Tue, 5 Sep 2006 23:53:21 +0000 (23:53 +0000)]
MFC the audit modifications to login so audit context is properly set and
the correct audit records are submitted.

Reviewed by: rwatson
Obtained from: TrustedBSD Project

17 years agoHook audit into the OpenSSH build, this results in audit records being
csjp [Tue, 5 Sep 2006 23:51:32 +0000 (23:51 +0000)]
Hook audit into the OpenSSH build, this results in audit records being
submitted for successful/failed logins, as well as having OpenSSH set
the audit context for a user when they login.

Reviewed by: rwatson
Obtained from: TrustedBSD Project

17 years agoMFC revision 1.52
alc [Tue, 5 Sep 2006 23:10:58 +0000 (23:10 +0000)]
MFC revision 1.52
  Prevent a call to contigmalloc() that asks for more physical memory than
  the machine has from causing a panic.

17 years agoMFC: GCC 3.4.6 Objective C support bits (as of 2006/08/25 #116475).
obrien [Tue, 5 Sep 2006 21:10:04 +0000 (21:10 +0000)]
MFC: GCC 3.4.6 Objective C support bits (as of 2006/08/25 #116475).

17 years agoMFC: GCC 3.4.6 F77 runtime support bits (as of 2006/08/25 #116475).
obrien [Tue, 5 Sep 2006 21:00:57 +0000 (21:00 +0000)]
MFC: GCC 3.4.6 F77 runtime support bits (as of 2006/08/25 #116475).

17 years agoMFC: GCC 3.4.6 C++ support bits (as of 2006/08/25 #116475).
obrien [Tue, 5 Sep 2006 20:41:08 +0000 (20:41 +0000)]
MFC: GCC 3.4.6 C++ support bits (as of 2006/08/25 #116475).

17 years agodemangle.h was removed in vendor sources sometime between 3.4.2 and 3.4.4.
obrien [Tue, 5 Sep 2006 20:40:49 +0000 (20:40 +0000)]
demangle.h was removed in vendor sources sometime between 3.4.2 and 3.4.4.

17 years agoRemove header that disappeared between 3.4.2 and 3.4.4.
obrien [Tue, 5 Sep 2006 19:42:55 +0000 (19:42 +0000)]
Remove header that disappeared between 3.4.2 and 3.4.4.

17 years agoMFC: rev 1.8: update libsupc++ to include missing files
obrien [Tue, 5 Sep 2006 19:29:38 +0000 (19:29 +0000)]
MFC: rev 1.8: update libsupc++ to include missing files

17 years agoMFC: Fix for a bug that causes the computation of "len" in tcp_output() to
mohans [Tue, 5 Sep 2006 19:18:42 +0000 (19:18 +0000)]
MFC: Fix for a bug that causes the computation of "len" in tcp_output() to
     get messed up, resulting in an inconsistency between the TCP state
     and so_snd.

17 years agoMFC: Fixes an edge case bug in timewait handling where ticks rolling over causing
mohans [Tue, 5 Sep 2006 19:16:10 +0000 (19:16 +0000)]
MFC: Fixes an edge case bug in timewait handling where ticks rolling over causing
     the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry).

17 years agoMFC: ufs_lookup.c 1.81
daichi [Tue, 5 Sep 2006 13:20:41 +0000 (13:20 +0000)]
MFC: ufs_lookup.c 1.81
    - fixes around whiteout processing bug

17 years agoMFC rev. 1.25 from if_vge.c
mr [Tue, 5 Sep 2006 07:06:15 +0000 (07:06 +0000)]
MFC rev. 1.25 from if_vge.c

Submitted by: Oleg Bulyzhin

17 years agoMFC performance improvements when skipping entry bodies.
kientzle [Tue, 5 Sep 2006 05:23:51 +0000 (05:23 +0000)]
MFC performance improvements when skipping entry bodies.
In particular, this speeds up listing contents or extracting
single files from uncompressed archives read from slow, seekable
media (e.g., slow disk drives).

Thanks to: Benjamin Lutz for doing the heavy lifting,
   critical bugfix from Chris Spiegel

17 years agoMFC vfs_cache.c revision 1.106
csjp [Tue, 5 Sep 2006 03:23:02 +0000 (03:23 +0000)]
MFC vfs_cache.c revision 1.106

Axe Giant from vn_fullpath(9). The vnode -> pathname lookup should be
filesystem agnostic. We are not touching any file system specific functions
in this code path. Since we have a cache lock, there is really no need to
keep Giant around here.

This eliminates Giant acquisitions for any syscall which is auditing pathnames.

17 years agoPseudo-MFC rev 1.58:
marcel [Mon, 4 Sep 2006 18:52:09 +0000 (18:52 +0000)]
Pseudo-MFC rev 1.58:
Add SIIG 4 port serial card based on the Oxford OX16PCI954.

17 years agoMFC: 1.33
marius [Mon, 4 Sep 2006 18:28:32 +0000 (18:28 +0000)]
MFC: 1.33

Do as the USII CPU manual suggests and leave interrupts enabled
for a bit before retrying to resend an IPI in order to avoid
deadlocks if the other CPU is also trying to send one.

17 years agoMFC: v1.98
jmg [Mon, 4 Sep 2006 17:17:25 +0000 (17:17 +0000)]
MFC: v1.98
spell unlock correctly, this is relatively minor as it's rare someone would
provide a lock method, and want the default unlock, but it is a bug...

17 years agoMFC: Connect new geli(8) files to the build.
pjd [Mon, 4 Sep 2006 15:39:10 +0000 (15:39 +0000)]
MFC: Connect new geli(8) files to the build.

17 years agoMFC: Synchronize geli(8) with HEAD version.
pjd [Mon, 4 Sep 2006 15:26:05 +0000 (15:26 +0000)]
MFC: Synchronize geli(8) with HEAD version.

17 years agoMFC: Connect new padlock(3) files to the build.
pjd [Mon, 4 Sep 2006 15:24:19 +0000 (15:24 +0000)]
MFC: Connect new padlock(3) files to the build.

17 years agoMFC: Synchronize padlock(4) driver with HEAD version.
pjd [Mon, 4 Sep 2006 15:21:11 +0000 (15:21 +0000)]
MFC: Synchronize padlock(4) driver with HEAD version.

17 years agoMFC: Synchronize crypto drivers with the code from the HEAD branch.
pjd [Mon, 4 Sep 2006 15:18:50 +0000 (15:18 +0000)]
MFC: Synchronize crypto drivers with the code from the HEAD branch.

17 years agoMFC: sys/netipsec/key.c
pjd [Mon, 4 Sep 2006 15:17:50 +0000 (15:17 +0000)]
MFC: sys/netipsec/key.c
sys/netipsec/xform_ah.c
sys/netipsec/xform_esp.c
sys/netipsec/xform_ipcomp.c

- Allow to use fast_ipsec(4) on debug.mpsafenet=0 and INVARIANTS-enabled
  systems. Without the change it will panic on assertions.
- Update the code after opencrypto changes.

17 years agoMFC: Synchronize opencrypto framework with HEAD version.
pjd [Mon, 4 Sep 2006 15:16:14 +0000 (15:16 +0000)]
MFC: Synchronize opencrypto framework with HEAD version.

17 years agoWhile checking for update of snapshot file in the ffs_copyonwrite,
kib [Mon, 4 Sep 2006 13:55:32 +0000 (13:55 +0000)]
While checking for update of snapshot file in the ffs_copyonwrite,
first filter out metadata update. Otherwise, devfs vnode could be
erronously interpreted as ufs one, causing further check of i_flags
to use random memory.

PR: kern/100365
Debugged and fix described by: tegge
Approved by: pjd (mentor)

17 years agoMFC: tools/regression/ipsec/ipsec.t 1.1
pjd [Mon, 4 Sep 2006 13:07:59 +0000 (13:07 +0000)]
MFC: tools/regression/ipsec/ipsec.t 1.1

Add regression tests for IPsec.

17 years agoMFC: sys/modules/geom/geom_bde/Makefile 1.2
pjd [Mon, 4 Sep 2006 13:01:51 +0000 (13:01 +0000)]
MFC: sys/modules/geom/geom_bde/Makefile 1.2

Don't expect that 'device random' will compile in those files into the
kernel for us. If random is compiled as kernel module, geom_bde.ko cannot
be loaded.

Reported by: Michal Suszko <michal@dry.pl>

17 years agoMFC: sys/ufs/ffs/ffs_vfsops.c 1.318
pjd [Mon, 4 Sep 2006 12:59:35 +0000 (12:59 +0000)]
MFC: sys/ufs/ffs/ffs_vfsops.c 1.318

Declare UFS module version.

17 years agoMFC: sys/geom/mirror/g_mirror.c 1.86-1.88
pjd [Mon, 4 Sep 2006 12:55:43 +0000 (12:55 +0000)]
MFC: sys/geom/mirror/g_mirror.c 1.86-1.88
sys/geom/raid3/g_raid3.c 1.70-1.72

- Don't use f-word in comments. We are gentlemans.

  Pointed out by: Maciej Sobczak

- Commit the results of the typo hunt by Darren Pilgrim.
  This change affects documentation and comments only,
  no real code involved.

  PR: misc/101245
  Submitted by: Darren Pilgrim <darren pilgrim bitfreak org>
  Tested by: md5(1)
  Commit to HEAD by: yar

- Not only a request from us can be passed to g_{mirror,raid3}_worker()
  function, but also a request to us, in which case checking bio_cflags
  is wrong, because the class above us is controling it, not we.

17 years agoMFC: sys/geom/label/g_label.c 1.21
pjd [Mon, 4 Sep 2006 12:47:19 +0000 (12:47 +0000)]
MFC: sys/geom/label/g_label.c 1.21

Verify if a label doesn't point to the parent directory.

17 years agoMFC: sys/contrib/dev/acpica/acfreebsd.h 1.31
pjd [Mon, 4 Sep 2006 10:44:40 +0000 (10:44 +0000)]
MFC: sys/contrib/dev/acpica/acfreebsd.h 1.31

The strstr() function is in the libkern now.

17 years agoMFC: sys/conf/files 1.1138
pjd [Mon, 4 Sep 2006 10:43:40 +0000 (10:43 +0000)]
MFC: sys/conf/files 1.1138
sys/libkern/strstr.c 1.1
sys/sys/libkern.h 1.54

Add strstr() function to the libkern.

17 years agoMFC: sys/netinet/ip_input.c 1.317,1.318
pjd [Mon, 4 Sep 2006 10:39:47 +0000 (10:39 +0000)]
MFC: sys/netinet/ip_input.c 1.317,1.318

Set 'fp' variable to NULL after freeing it, so it won't be dereferenced
later.

Found by: Coverity Prevent analysis tool
CID: 993

17 years agoMFC: sys/netipsec/ipsec_osdep.h 1.3
pjd [Mon, 4 Sep 2006 10:36:47 +0000 (10:36 +0000)]
MFC: sys/netipsec/ipsec_osdep.h 1.3

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

Reviewed by: rwatson

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)