]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC: r244690
rmacklem [Sun, 6 Jan 2013 00:38:25 +0000 (00:38 +0000)]
MFC: r244690
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245082 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244689
rmacklem [Sun, 6 Jan 2013 00:35:10 +0000 (00:35 +0000)]
MFC: r244689
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245081 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years ago- Add IFT_L2VLAN (vlan(4)) support.
markj [Sat, 5 Jan 2013 22:55:08 +0000 (22:55 +0000)]
- Add IFT_L2VLAN (vlan(4)) support.
- Add a -P option to support PID files. When -a is specified
  /var/run/rarpd.pid is used by default, and when an interface is
  specified /var/run/rarpd.<ifname>.pid is used by default.

Approved by: hrs, emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@245076 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244439:
ae [Sat, 5 Jan 2013 20:07:28 +0000 (20:07 +0000)]
MFC r244439:
  The selectroute function does own account of EHOSTUNREACH errors,
  no need to do it twice.

MFC r244440:
  Make dst_sa initialization only when it is actually needed.

MFC r244441:
  When we have some address to forward (e.g. it was specified with ipfw fwd),
  we should pass it as first argument into in6_selectroute_fib function to
  initiate new route lookup.

Sponsored by: Yandex LLC

git-svn-id: svn://svn.freebsd.org/base/stable/9@245067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244348:
gabor [Sat, 5 Jan 2013 16:35:46 +0000 (16:35 +0000)]
MFC r244348:
  - Fix handling of .mps files

git-svn-id: svn://svn.freebsd.org/base/stable/9@245062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244144
grehan [Fri, 4 Jan 2013 19:29:23 +0000 (19:29 +0000)]
MFC r244144

Implement an API to allow a hypervisor to save/restore
guest floating point state without having to know the
size of floating-point state.

Unstaticize fpurestore to allow the hypervisor to
save/restore guest state using fpusave/fpurestore
on the allocated FPU state area.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243372:
jh [Fri, 4 Jan 2013 12:06:59 +0000 (12:06 +0000)]
MFC r243372:

Disallow attaching preloaded memory disks via ioctl.

- The feature is dangerous because the kernel code didn't check
  validity of the memory address provided from user space.
- It seems that mdconfig(8) never really supported attaching preloaded
  memory disks.
- Preloaded memory disks are automatically attached during md(4)
  initialization. Thus there shouldn't be much use for the feature.

PR: kern/169683

git-svn-id: svn://svn.freebsd.org/base/stable/9@245038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234047 by bjk:
jh [Fri, 4 Jan 2013 11:57:27 +0000 (11:57 +0000)]
MFC r234047 by bjk:

Fix a couple of style issues. Tweak grammar and markup while here.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244941:
pfg [Fri, 4 Jan 2013 04:03:21 +0000 (04:03 +0000)]
MFC r244941:

libedit: bind the correct command when using "bind -k".

"ed-argument-digit" (i. e. command 0) was incorrectly used
instead.
This bug comes from the original sources imported in 1994
and has been confirmed in upstream NetBSD.

Reported by: Yamagi Burmeister
Submitted by: Christoph Mallon

git-svn-id: svn://svn.freebsd.org/base/stable/9@245025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 244776, 244792:
pfg [Fri, 4 Jan 2013 03:54:05 +0000 (03:54 +0000)]
MFC 244776, 244792:

gcc: avoid generating negative values to DW_AT_byte_size.

There is a bug in gcc (GCC/35998) where dwarf reports
sizes of unsigned -1 (0xffffffff).

On NetBSD this generated a faulty CTF entry which then
caused a segfault in ctfmerge. The issue was worked
around in NetBSD's Dtrace but since the issue originated
in gcc, it seems reasonable to fix it here.

Thanks to Christoph Mallon for pointing out a correct fix.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244447
rmacklem [Thu, 3 Jan 2013 23:21:01 +0000 (23:21 +0000)]
MFC: r244447
Post r243965 the nfsd daemon will not start up for kernels
built without "options INET6". This patch fixes the problem.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244370
rmacklem [Thu, 3 Jan 2013 23:15:36 +0000 (23:15 +0000)]
MFC: r244370
Piete.Brooks at cl.cam.ac.uk reported via email a crash which was
caused by use of an invalid kgss_gssd_handle during an upcall to
the gssd daemon when it has exited. This patch seems to avoid the
crashes by holding a reference count on the kgss_gssd_handle until
the upcall is done. It also adds a new mutex kgss_gssd_lock used to
make manipulation of kgss_gssd_handle SMP safe.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244331
rmacklem [Thu, 3 Jan 2013 23:09:16 +0000 (23:09 +0000)]
MFC: r244331
Fix the gssd daemon so that it uses syslog() to report
an error instead of calling err() when it is daemonized,
so that the error gets logged.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242697,r242704:
wblock [Thu, 3 Jan 2013 21:31:57 +0000 (21:31 +0000)]
MFC r242697,r242704:

r242697:
Add devd.conf(5) and devd(8) to SEE ALSO xrefs.  Give users a pointer to
seemingly mysterious actions that are not done by ifconfig itself, but
by devd triggering on events caused by ifconfig.

r242704:
Remove fifteen-year-old notes on media selection (suggested by simon@).
Add commas after "e.g." and "i.e.".

PR: docs/173405

git-svn-id: svn://svn.freebsd.org/base/stable/9@245008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: 234930
gnn [Thu, 3 Jan 2013 18:50:27 +0000 (18:50 +0000)]
MFC: 234930

Fix so that ,usr and ,os work correctly with fixed function (IAF)
counters.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244999 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244405:
dumbbell [Wed, 2 Jan 2013 21:27:32 +0000 (21:27 +0000)]
MFC r244405:
psm: Support detection of Synaptics touchpad v7.5 and above

Starting with firmware v7.5, the "Read TouchPad Modes" ($01) and "Read
Capabilities" ($02) commands changed: previously constant bytes now
carry variable information.

We now compare those bytes to expected constants only for firmware prior
to v7.5.

Tested by: Zeus Panchenko <zeus@gnu.org.ua>

git-svn-id: svn://svn.freebsd.org/base/stable/9@244976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244704, r244714 and r244715:
hselasky [Wed, 2 Jan 2013 07:33:19 +0000 (07:33 +0000)]
MFC r244704, r244714 and r244715:
Add vendor IDs for Broadcom USB dongles (BCM20702).

PR: kern/174707

git-svn-id: svn://svn.freebsd.org/base/stable/9@244956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Tue, 1 Jan 2013 18:53:47 +0000 (18:53 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.6/cf tree.

     While here, update DNSBL link once again.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Update import info based on recent experiences and sendmail 8.14.6 import.
gshapiro [Tue, 1 Jan 2013 18:43:37 +0000 (18:43 +0000)]
MFC: Update import info based on recent experiences and sendmail 8.14.6 import.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Merge sendmail 8.14.6
gshapiro [Tue, 1 Jan 2013 18:26:12 +0000 (18:26 +0000)]
MFC: Merge sendmail 8.14.6

git-svn-id: svn://svn.freebsd.org/base/stable/9@244928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244406:
delphij [Tue, 1 Jan 2013 07:02:33 +0000 (07:02 +0000)]
MFC r244406:

Update arcmsr(4) to vendor version 1.20.00.26, this adds
support for their new RAID adapter ARC-1214.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 Ching-Lung Huang <ching2048 areca com tw>

git-svn-id: svn://svn.freebsd.org/base/stable/9@244921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244369 (jimharris):
delphij [Tue, 1 Jan 2013 07:00:42 +0000 (07:00 +0000)]
MFC r244369 (jimharris):

Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT to report nonexistent
LUNs for the virtual processor device.  This removes lots of CAM warnings,
and follows similar recent changes to tws(4) and twa(4) drivers.

Also fix case where CAM_REQ_CMP was getting OR'd with CAM_DEV_NOT_THERE
in the nonexistent LUN case, resulting in different CAM status (CAM_UA_TERMIO)
getting reported to CAM.  This issue existing previously, but was more subtle
because it changed CAM_SEL_TIMEOUT to CAM_CMD_TIMEOUT.

Sponsored by: Intel
Reported and tested by: Willem Jan Withagen <wjw@digiware.nl>

git-svn-id: svn://svn.freebsd.org/base/stable/9@244920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoShift to -STABLE now that -RELEASE is done.
kensmith [Mon, 31 Dec 2012 16:52:52 +0000 (16:52 +0000)]
Shift to -STABLE now that -RELEASE is done.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244600:
dim [Mon, 31 Dec 2012 14:21:31 +0000 (14:21 +0000)]
MFC r244600:

Fix a bug in ld --gc-sections: it strips out .note sections, while it
should never do so.  This can cause global constructors and destructors
to not be executed at run-time, resulting in crashes and other strange
behaviour.

Reported by: rene

git-svn-id: svn://svn.freebsd.org/base/stable/9@244904 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244900:
bz [Mon, 31 Dec 2012 11:59:54 +0000 (11:59 +0000)]
MFC r244900:

  Happy New Year 2013!

git-svn-id: svn://svn.freebsd.org/base/stable/9@244901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:48:17 +0000 (03:48 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244887 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:47:43 +0000 (03:47 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244884 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 244523:
markj [Mon, 31 Dec 2012 03:34:52 +0000 (03:34 +0000)]
MFC 244523:
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by: emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244522: Don't reload syslogd after rotating sendmail.st.
markj [Mon, 31 Dec 2012 03:34:14 +0000 (03:34 +0000)]
MFC r244522: Don't reload syslogd after rotating sendmail.st.

Approved by: emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244878 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244791:
gjb [Mon, 31 Dec 2012 00:51:57 +0000 (00:51 +0000)]
MFC r244791:
 - Fix wording nit.

PR: 174787
Submitted by: Cody Rank

git-svn-id: svn://svn.freebsd.org/base/stable/9@244875 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix a missing word.
hrs [Sun, 30 Dec 2012 17:54:25 +0000 (17:54 +0000)]
Fix a missing word.

Spotted by: theraven

git-svn-id: svn://svn.freebsd.org/base/stable/9@244869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix version numbers.
hrs [Sun, 30 Dec 2012 16:41:17 +0000 (16:41 +0000)]
Fix version numbers.

PR: 174813

git-svn-id: svn://svn.freebsd.org/base/stable/9@244867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix entries of new C++ libraries and xlocale.
hrs [Sun, 30 Dec 2012 16:39:32 +0000 (16:39 +0000)]
Fix entries of new C++ libraries and xlocale.

Submitted by: theraven

git-svn-id: svn://svn.freebsd.org/base/stable/9@244866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Add missing closing quote on commented out example
gshapiro [Sun, 30 Dec 2012 15:37:05 +0000 (15:37 +0000)]
MFC: Add missing closing quote on commented out example

git-svn-id: svn://svn.freebsd.org/base/stable/9@244862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244855: Add directories which were wrongly created during
ume [Sun, 30 Dec 2012 08:16:05 +0000 (08:16 +0000)]
MFC r244855: Add directories which were wrongly created during
auditdistd addition.

Requested by: netchild

git-svn-id: svn://svn.freebsd.org/base/stable/9@244856 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Properly define true/false when defining __bool_true_false_are_defined
gshapiro [Sat, 29 Dec 2012 19:06:04 +0000 (19:06 +0000)]
MFC: Properly define true/false when defining __bool_true_false_are_defined
     for filters which pull in mfapi.h before stdbool.h.  Issue reported by
     Petr Rehor, maintainer of amavisd-milter port.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241089, r243661 and r244252:
hselasky [Sat, 29 Dec 2012 12:29:29 +0000 (12:29 +0000)]
MFC r241089, r243661 and r244252:

Regenerate usb.conf

git-svn-id: svn://svn.freebsd.org/base/stable/9@244817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244567:
hselasky [Sat, 29 Dec 2012 12:16:58 +0000 (12:16 +0000)]
MFC r244567:

Reduce stack usage in the USB audio driver by moving some large stack
elements to the USB audio softc structure.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244491:
hselasky [Sat, 29 Dec 2012 12:13:38 +0000 (12:13 +0000)]
MFC r244491:
Add support for throttling UMASS.
Mostly useful for debugging purposes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244489:
hselasky [Sat, 29 Dec 2012 12:10:41 +0000 (12:10 +0000)]
MFC r244489:
Make sure we block recursion on TTY's inwakeup callback

Suggested by: davide

git-svn-id: svn://svn.freebsd.org/base/stable/9@244813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244237:
kib [Sat, 29 Dec 2012 02:13:31 +0000 (02:13 +0000)]
MFC r244237:
Remove a special case for XEN.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244226
rmacklem [Fri, 28 Dec 2012 14:06:49 +0000 (14:06 +0000)]
MFC: r244226
The group list for a non-default export entry (a host/subnet one)
was being copied from the wrong place. This patch fixes that.
This could cause access failures for mapped users, when the group
permissions were needed.

PR: 147998
Submitted by: Christopher Key (cjk32@cam.ac.uk)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244770: Fix location of /var/audit/dist and /var/audit/remote.
ume [Fri, 28 Dec 2012 10:58:03 +0000 (10:58 +0000)]
MFC r244770: Fix location of /var/audit/dist and /var/audit/remote.
Note that those who did installworld after r244398 should remove
wrongly created /var/dist and /var/remote.

Reviewed by: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/9@244771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244145:
mav [Wed, 26 Dec 2012 18:50:03 +0000 (18:50 +0000)]
MFC r244145:
Add quirks for AD1984A codec and Lenovo X300 laptop.

PR: kern/148741

git-svn-id: svn://svn.freebsd.org/base/stable/9@244712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix error message to be accurate for when ProgName is not "sysinstall" (oops?)
dteske [Tue, 25 Dec 2012 20:23:53 +0000 (20:23 +0000)]
Fix error message to be accurate for when ProgName is not "sysinstall" (oops?)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244475:
pfg [Tue, 25 Dec 2012 17:39:37 +0000 (17:39 +0000)]
MFC r244475:
More constant renaming in preparation for newer features.

We also try to make better use of the fs flags instead of
trying adapt the code according to the fs structures. In
the case of subsecond timestamps and birthtime we now
check that the feature is explicitly enabled: previously
we only checked that the reserved space was available and
silently wrote them.

This approach is much safer, especially if the filesystem
happens to use embedded inodes or support EAs.

Discussed with:    Zheng Liu, bde

git-svn-id: svn://svn.freebsd.org/base/stable/9@244687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix another typo while we're here.
dteske [Tue, 25 Dec 2012 11:11:26 +0000 (11:11 +0000)]
Fix another typo while we're here.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd Errata items:
hrs [Tue, 25 Dec 2012 06:07:34 +0000 (06:07 +0000)]
Add Errata items:
        - mfi(4) driver overflow issue,
        - typos in Installation Instructions.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244104:
delphij [Tue, 25 Dec 2012 00:24:43 +0000 (00:24 +0000)]
MFC r244104:

In parse():

 - Only operate on copy, don't operate on source.
 - Eliminate home-rolled strsep().
 - Constify the parameter.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix various grammatical errors.
hrs [Mon, 24 Dec 2012 20:33:37 +0000 (20:33 +0000)]
Fix various grammatical errors.

Submitted by: bjk

git-svn-id: svn://svn.freebsd.org/base/stable/9@244664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoNote that filesystem modules must be recompiled.
kib [Mon, 24 Dec 2012 14:22:52 +0000 (14:22 +0000)]
Note that filesystem modules must be recompiled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242476:
kib [Mon, 24 Dec 2012 13:29:22 +0000 (13:29 +0000)]
MFC r242476:
The r241025 fixed the case when a binary, executed from nullfs mount,
was still possible to open for write from the lower filesystem.  There
is a symmetric situation where the binary could already has file
descriptors opened for write, but it can be executed from the nullfs
overlay.

Handle the issue by passing one v_writecount reference to the lower
vnode if nullfs vnode has non-zero v_writecount.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241025:
kib [Mon, 24 Dec 2012 13:22:32 +0000 (13:22 +0000)]
MFC r241025:
Fix the mis-handling of the VV_TEXT on the nullfs vnodes.
Add a set of VOPs for the VV_TEXT query, set and clear operations,
which are correctly bypassed to lower vnode.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244658 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243340:
kib [Mon, 24 Dec 2012 13:17:22 +0000 (13:17 +0000)]
MFC r243340:
Remove the check and panic for an impossible condition.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240285:
kib [Mon, 24 Dec 2012 13:14:38 +0000 (13:14 +0000)]
MFC r240285:
Allow shared lookups for nullfs mounts, if lower filesystem supports
it.

MFC r241548:
Replace the XXX comment with the proper description.

MFC r241554:
Grammar fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242560:
kib [Mon, 24 Dec 2012 13:05:27 +0000 (13:05 +0000)]
MFC r242560:
Add decoding of the missed MNTK_ flags to ddb "show mount" command.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240284:
kib [Mon, 24 Dec 2012 13:01:07 +0000 (13:01 +0000)]
MFC r240284:
Add a facility for vgone() to inform the set of subscribed mounts
about vnode reclamation. Typical use is for the bypass mounts like
nullfs to get a notification about lower vnode going away.

MFC r241225 (by avg):
mount.h: MNTK_VGONE_UPPER and MNTK_VGONE_WAITER were supposed to be different

git-svn-id: svn://svn.freebsd.org/base/stable/9@244652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240283:
kib [Mon, 24 Dec 2012 12:54:12 +0000 (12:54 +0000)]
MFC r240283:
Add MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the
lookup code that dotdot lookups shall override any shared lock
requests with the exclusive one. The flag is useful for filesystems
which sometimes need to upgrade shared lock to exclusive inside the
VOP_LOOKUP or later, which cannot be done safely for dotdot, due to
dvp also locked and causing LOR.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244096:
delphij [Mon, 24 Dec 2012 00:45:54 +0000 (00:45 +0000)]
MFC r244096:

Sync pf.os with OpenBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r232679:
hrs [Mon, 24 Dec 2012 00:40:21 +0000 (00:40 +0000)]
MFC: r232679:

- Clean up extra ${.OBJDIR}.
- Add ${IMAGE} for the supported image files.  This fixes the install target
  on FreeBSD/pc98.
- Use "mkdir -p" instead of "-mkdir" consistently.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix typos.
hrs [Mon, 24 Dec 2012 00:08:58 +0000 (00:08 +0000)]
Fix typos.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd items for 9.1R relnotes:
hrs [Sun, 23 Dec 2012 22:13:53 +0000 (22:13 +0000)]
Add items for 9.1R relnotes:
jail devfs/nullfs/zfs support and new params,
kern.eventtimer.activetick,
posix_fadvise(2) added,
filemon(4) added,
kern.stop_scheduler_on_panic=1 by default,
linux_fadvice64() added,
hw.memtest.tests=0 by default on VM,
kern.msgbuf_show_timestamp added,
null(4) and zero(4) non-blocking mode,
ULE CPU selection for SMT improved,
PREEMPTION on sparc64,
security.bsd.unprivileged_idprio added,
splash(4) TheDraw support,
boot0cfg PXE support,
/boot/config support,
backup GPT handling change in gptboot,
zfsboot/zfsloader device name/root storage pool format change,
zfsboot on sparc64,
abtn(4) on powerpc,
AMD 10h/12h family errata,
atibl(4) on powerpc,
acpi_wmi(4) multiple instances,
adm1030(4) on powerpc,
cesa(4) on arm,
PMC support for PowerPC G4, Sandy Bridge, software events,
pcf8563(4) RTC,
PWM fan control on PowerMac SMU,
Atmel SAM9XE support on arm,
kern.proc.* added,
USB suspend/resume improved,
xhci(4) USB 3.0 hub bugfix,
viawd(4) watch dog timer driver,
wbwd(4) watch dog timer driver,
drm2(4) new Intel GPU driver,
snd_hda(4) improved,
snd_hdspe(4) added,
snd_emu10kx(4), snd_maestro3(4), and snd_csa(4) GPL-free,
ae(4) bugfix,
axe(4) checksum offloading support,
bce(4) improved,
bge(4) improved,
cxgb(4) and cxgbe(4) updated,
dc(4) M5261/M5263 support added,
et(4) bugfixes,
igb(4) updated to 2.3.4,
iwn(4) new device support,
miibus(4) improved,
msk(4) 64-bit DMA support,
mxge(4) updated to 1.4.55,
nsphyter(4) National DP83849 support,
oce(4) for Emulex OneConnect 10Gbit Ethernet added,
ral(4) Ralink RT2800 and RT3000 support,
re(4) RTL8411 support,
runfw(4) updated to 0.236,
sfxge(4) for Solarflare SFC9000 added,
smcphy(4) Seeq Technology 80220 PHY support,
ti(4) ALTQ and PAE support,
vge(4) link-state detection support,
vr(4) flow control support,
xnb(4) netback improved,
if_bridge(4) link-state detection support,
ipfw(4) table extended,
ip6(4) performance improvement, multiple FIB, default route handling,
IPV6_MULTICASE_HOPS fixed,
NET_RT_IFLISTL added,
netmap(4) added,
sctp(4) improved,
SO_PROTOCOL added,
TCP_KEEP* options added,
arcmsr(4) updated to 1.20.00.25,
ahci(4) hw.ahci.force tunable added,
hw.ata.ata_dma backward compatibility improved,
cam(4) SEMB device support,
cam(4) kern.cam.pmp.hide_special added,
ctl(4) CAM Target Layer added,
cd(4) now uses READ CD for Audio CD,
da(4) BIO_DELETE support,
GEOM_MIRROR BIO_DELETE support,
GEOM_MULTIPATH improved,
GEOM_PART_MBR supports Linux swap partition,
GEOM_PART_LDM added,
GEOM_RAID added to GENERIC, DDF format support,
GEOM_UNCOMPRESS added,
hpt27xx(4) for HighPoint RocketRAID 27xx added,
isci(4) for Intel C600 (Patsburg) chipset added,
isp(4) target mode bugfix,
ixgbe(4) Intel X540 support,
mfi(4) bugfix, MSI support, Drake Skinny and Thunderbolt support,
mps(4) updated to 14.00.00.01-fbsd,
mpt(4) bugfix,
usb(4) storage device power saving mode support,
NFS bugfix, positive name cache, vfs.nfsd.disable_checkutf8,
tmpfs(5) vfs.tmpfs.memory_reserved,
ZFS improvements,
auth.conf(5) removed,
camcontorl(8) fwdownload,
dhclient(8) domain-search option support,
dump(8) devicename length in /etc/dumpdates changed,
fetch(1) %-encoding in user and password part,
fdlopen(3) added,
fopen(3) "x" mode,
gcc(1) -ffast-math bugfix,
hastd(8) pidfile,
ifconfig(8) vlanhwcsum,
ifconfig(8) IPv6 fix in an IPv4-only jail,
ifconfig(8) carp state parameter,
jail(8) configuration file support,
kdump(1) -p pid,
kenv(1) -v and -N,
kldload(8) -n,
libedit updated to 2009/12/28 snapshot,
libmap.conf(5) include and includedir directive,
libthr mutex performance improved,
libcxxrt and libc++ import,
limits(1) -P pid,
pciconf(8) -le,
procstat(1) superpage flag, -e, -x, -l,
remquo(3) bugfix,
rtld(1) GCC RELRO, GNU hash section,
setbuf(1) and libstdbuf,
top(1) per-thread I/O stat,
unzip(1) -Z,
xlocale(3) API import,
periodic: daily_status_zfs_zpool_list_enable in 404.status-zfs,
periodic: daily_scrub_zfs_default_threshold is now 35 days,
rc.d/nfsd: vfs.nfsd.server_max_nfsvers handling change,
backward compatibility: ipv6_enable=YES && ipv6_gateway_enable=YES,
ISC BIND 9.8.3-P4,
compiler-rt 147467,
file 5.11,
GNU gperf 3.0.3,
libarchive 2.8.5,
libpcap 1.2.1,
libstdc++ 135556 on gcc-4_2-branch,
LLVM 3.1,
netcat 5.1,
OpenSSL 0.9.8x,
tcpdump 4.2.1,
tcsh 6.18.01,
tzdata2012a,
zlib 1.2.7, and
x11/kde4 4.8.4.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244641 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead
avg [Sun, 23 Dec 2012 20:03:10 +0000 (20:03 +0000)]
MFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead

git-svn-id: svn://svn.freebsd.org/base/stable/9@244636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243520,243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management
avg [Sun, 23 Dec 2012 12:46:28 +0000 (12:46 +0000)]
MFC r243520,243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management

git-svn-id: svn://svn.freebsd.org/base/stable/9@244626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable
avg [Sun, 23 Dec 2012 12:19:07 +0000 (12:19 +0000)]
MFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable

git-svn-id: svn://svn.freebsd.org/base/stable/9@244624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243502: zfs roopool: add support for multi-vdev configurations
avg [Sun, 23 Dec 2012 12:16:13 +0000 (12:16 +0000)]
MFC r243502: zfs roopool: add support for multi-vdev configurations

git-svn-id: svn://svn.freebsd.org/base/stable/9@244622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243762: gfs_file_inactive: replace bad code with ugly code
avg [Sun, 23 Dec 2012 12:12:47 +0000 (12:12 +0000)]
MFC r243762: gfs_file_inactive: replace bad code with ugly code

git-svn-id: svn://svn.freebsd.org/base/stable/9@244620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources
avg [Sun, 23 Dec 2012 12:09:41 +0000 (12:09 +0000)]
MFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources

git-svn-id: svn://svn.freebsd.org/base/stable/9@244618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
avg [Sun, 23 Dec 2012 12:07:42 +0000 (12:07 +0000)]
MFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
C-state data

git-svn-id: svn://svn.freebsd.org/base/stable/9@244616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag
avg [Sun, 23 Dec 2012 12:06:00 +0000 (12:06 +0000)]
MFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag

git-svn-id: svn://svn.freebsd.org/base/stable/9@244614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243519: zfs_fhtovp: there is no reason to amend lock flags with
avg [Sun, 23 Dec 2012 11:58:08 +0000 (11:58 +0000)]
MFC r243519: zfs_fhtovp: there is no reason to amend lock flags with
LK_RETRY here

git-svn-id: svn://svn.freebsd.org/base/stable/9@244613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243497: zfs: create devices/geoms from zvols after receiveing them
avg [Sun, 23 Dec 2012 11:56:08 +0000 (11:56 +0000)]
MFC r243497: zfs: create devices/geoms from zvols after receiveing them

PR: kern/167066

git-svn-id: svn://svn.freebsd.org/base/stable/9@244611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
avg [Sun, 23 Dec 2012 11:52:33 +0000 (11:52 +0000)]
MFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
not locked case

git-svn-id: svn://svn.freebsd.org/base/stable/9@244609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244246:
mm [Sat, 22 Dec 2012 22:27:44 +0000 (22:27 +0000)]
MFC r244246:

illumos-gate 13894:f4af77f6bbd2
3397 zdb <pool> <objnum> output is too verbose
3398 zdb can't dump feature flags zap objects

References:
https://www.illumos.org/issues/3397
https://www.illumos.org/issues/3398

git-svn-id: svn://svn.freebsd.org/base/stable/9@244602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoFix typo. (fixing them as I find them)
dteske [Sat, 22 Dec 2012 00:23:57 +0000 (00:23 +0000)]
Fix typo. (fixing them as I find them)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r238978(approved by luigi), r242631, r242834, r243707
melifaro [Fri, 21 Dec 2012 23:47:22 +0000 (23:47 +0000)]
Merge r238978(approved by luigi), r242631, r242834, r243707

replace inet_ntoa_r with the more standard inet_ntop().
As discussed on -current, inet_ntoa_r() is non standard, has different arguments
in userspace and kernel, and almost unused (no clients in userspace, only
net/flowtable.c, net/if_llatbl.c, netinet/in_pcb.c, netinet/tcp_subr.c
in the kernel)

Use unified print_dyn_rule_flags() function for debugging messages
instead of hand-made printfs in every place.

Simplify sending keepalives.
Prepare ipfw_tick() to be used by other consumers.

Make ipfw dynamic states operations SMP-ready.

* Global IPFW_DYN_LOCK() is changed to per-bucket mutex.
* State expiration is done in ipfw_tick every second.
* No expiration is done on forwarding path.
* hash table resize is done automatically and does not flush all states.
* Dynamic UMA zone is now allocated per each VNET
* State limiting is now done via UMA(9) api.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r241908, r242632
melifaro [Fri, 21 Dec 2012 22:48:12 +0000 (22:48 +0000)]
Merge r241908, r242632

Remove unnecessary chain read lock in ipfw nat 'global' code.
Document case when ipfw chain lock must be held while calling ipfw_nat().

git-svn-id: svn://svn.freebsd.org/base/stable/9@244569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244404:
mjg [Fri, 21 Dec 2012 21:40:51 +0000 (21:40 +0000)]
MFC r244404:

prison_racct_detach can be called for not fully initialized jail, so make
it check that the jail has racct before doing anything

PR: kern/174436

git-svn-id: svn://svn.freebsd.org/base/stable/9@244566 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243333:
jh [Fri, 21 Dec 2012 18:25:05 +0000 (18:25 +0000)]
MFC r243333:

- Don't pass geom and provider names as format strings.
- Add __printflike() attributes.
- Remove an extra argument for the g_new_geomf() call in swapongeom_ev().

git-svn-id: svn://svn.freebsd.org/base/stable/9@244547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241916:
delphij [Fri, 21 Dec 2012 00:41:52 +0000 (00:41 +0000)]
MFC r241916:

Remove __P.

Submitted by: kevlo

git-svn-id: svn://svn.freebsd.org/base/stable/9@244524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244037:
eadler [Thu, 20 Dec 2012 18:13:04 +0000 (18:13 +0000)]
MFC r244037:
Add check for failure of mkstemp and setenv.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244360:
ae [Thu, 20 Dec 2012 11:10:23 +0000 (11:10 +0000)]
MFC r244360:
  Use M_PROTO7 flag for M_IP6_NEXTHOP, because M_PROTO2 was used for
  M_AUTHIPHDR.

MFC r244365:
  Since we use different flags to detect tcp forwarding, and we share the
  same code for IPv4 and IPv6 in tcp_input, we should check both
  M_IP_NEXTHOP and M_IP6_NEXTHOP flags.

MFC r244386 (by glebius):
  Clear correct flag in INET6 case.

MFC r244387 (by glebius):
  Fix !INET6 build after r244365.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242996:
eadler [Thu, 20 Dec 2012 04:16:25 +0000 (04:16 +0000)]
MFC r242996:
Add support for CIR1000 - Cirrus Logic V34 to the sio driver

PR: kern/44267
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243932:
eadler [Thu, 20 Dec 2012 00:37:11 +0000 (00:37 +0000)]
MFC r243932:
Prefer the use of initalizer lists to ctor assignment.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243890:
eadler [Thu, 20 Dec 2012 00:35:08 +0000 (00:35 +0000)]
MFC r243890:
Connect organization.dot to the build

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244318:
eadler [Thu, 20 Dec 2012 00:32:43 +0000 (00:32 +0000)]
MFC r244318:
Minor wording improvments to some manual pages

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243891:
eadler [Thu, 20 Dec 2012 00:30:48 +0000 (00:30 +0000)]
MFC r243891:
Add ability to mergemaster to permit the user to type
the absolute path to PAGER if mergemaster can not find
the one already set.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243894:
eadler [Thu, 20 Dec 2012 00:28:52 +0000 (00:28 +0000)]
MFC r243894:
Remove useless check for NULL prior to free.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243892:
eadler [Thu, 20 Dec 2012 00:26:46 +0000 (00:26 +0000)]
MFC r243892:
Remove pointless check for the existence of /usr/bin/less which exists
in all configurations.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243572:
dim [Wed, 19 Dec 2012 16:22:46 +0000 (16:22 +0000)]
MFC r243572:

  Pull in r168610 from upstream libc++:

    When using libc++ headers on FreeBSD, in combination with -std=c++98,
    -ansi or -std=c++03, the long long type is not supported.  So in this
    case, several functions and types, like lldiv_t, strtoll(), are not
    declared.

  This should make it possible to use the libc++ headers in c++98 mode.

  Note: libc++ is originally designed as a c++0x or higher library, so you
  should still take care when using it with c++98 or c++03.

  Noted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>

MFC r243673 (by theraven):

  Merge new libc++ into head.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243907:
dim [Wed, 19 Dec 2012 12:19:45 +0000 (12:19 +0000)]
MFC r243907:

Fix an old bug in devd, where it uses std::sort() to sort the various
lists it reads from its configuration files on the priority field.

Because some items in the lists have the same priority, and std::sort()
is not stable, the exact order in which the items are enumerated does
not have to correspond to the order they appear in the configuration
files.

Apparently this was never noticed with libstdc++, but with libc++ it
could cause the "uhid" entry from /etc/devd/usb.conf to be used instead
of the "ums" entry (which is earlier in the file).  This caused the
problem described in the PR: the USB mouse module was never loaded, and
the other actions (such as starting moused) were not executed.

To fix the problem, make devd use std:stable_sort() instead.

Reported by: Jan Beich <jbeich@tormail.org>
PR: bin/172958

git-svn-id: svn://svn.freebsd.org/base/stable/9@244430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243901:
kib [Wed, 19 Dec 2012 04:24:11 +0000 (04:24 +0000)]
MFC r243901:
Fixes to ensure the integrity of the callwheel tailqs.

MFC r243912 (by attilio):
Rearrange comments, use cached callout flags when callout could have
been already destroyed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r244181 from head to stable/9:
rwatson [Tue, 18 Dec 2012 14:32:53 +0000 (14:32 +0000)]
Merge r244181 from head to stable/9:

  Fix the location of auditdistd configuration file.

  Reported by:    Johan Hendriks <joh.hendriks@gmail.com>

Merge remaining unmerged portions of r243752 from head to stable/9; parts
adding the new 'auditdistd' user were previously merged in r243947:

  Merge a number of changes required to hook up OpenBSM 1.2-alpha2's
  auditdistd (distributed audit daemon) to the build:

  - Manual cross references
  - Makefile for auditdistd
  - rc.d script, rc.conf entrie
  - New group and user for auditdistd; associated aliases, etc.

  The audit trail distribution daemon provides reliable,
  cryptographically protected (and sandboxed) delivery of audit tails
  from live clients to audit server hosts in order to both allow
  centralised analysis, and improve resilience in the event of client
  compromises: clients are not permitted to change trail contents
  after submission.

  Submitted by:   pjd
  Sponsored by:   The FreeBSD Foundation (auditdistd)

Obtained from: TrustedBSD Project

git-svn-id: svn://svn.freebsd.org/base/stable/9@244398 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoApply minor local adjustment to OpenBSM's parse.y due to differences in Yacc
rwatson [Tue, 18 Dec 2012 14:31:55 +0000 (14:31 +0000)]
Apply minor local adjustment to OpenBSM's parse.y due to differences in Yacc
between 10-CURRENT and 9-STABLE; this will allow the soon-to-be-connected
auditdistd to build on 9.x.

Pointer from: bapt

git-svn-id: svn://svn.freebsd.org/base/stable/9@244397 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r243800 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:34:18 +0000 (10:34 +0000)]
Merge r243800 from head to stable/9:

  Specifically point at the Handbook instructions for world updates in
  UPDATING by URL.

  As there has been some confusion over the need to run "mergemaster -p",
  part of our standard upgrade procedure, following the recent addition of
  an "auditdistd" user, add a note about it to UPDATING explicitly.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r243798 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:29:28 +0000 (10:29 +0000)]
Merge r243798 from head to stable/9:

  Add auditdistd to the pre-install required uid check list.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r243751 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:23:58 +0000 (10:23 +0000)]
Merge r243751 from head to stable/9:

  Merge OpenBSM 1.2-alpha2 changes from contrib/openbsm to
  src/sys/{bsm,security/audit}.  There are a few tweaks to help with the
  FreeBSD build environment that will be merged back to OpenBSM.  No
  significant functional changes appear on the kernel side.

  Obtained from:  TrustedBSD Project
  Sponsored by:   The FreeBSD Foundation (auditdistd)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244391 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge OpenBSM 1.2-alpha3 from head to stable/9, upgrading from the previous
rwatson [Tue, 18 Dec 2012 09:32:44 +0000 (09:32 +0000)]
Merge OpenBSM 1.2-alpha3 from head to stable/9, upgrading from the previous
OpenBSM 1.1p2:

OpenBSM 1.2 alpha 3

- Various minor tweaks to the auditdistd build to make it fit the FreeBSD
  build environment better.
- AUE_WAIT6 merged from FreeBSD 9.

OpenBSM 1.2 alpha 2

- auditdistd, a distributed audit trail management daemon, has now been
  merged.  This allows trail files to be securely and reliably synced from
  audited hosts to an audit server, and employs TLS encryption.  Where
  available, it uses Capsicum to sandbox the service.  This work was
  contributed by Pawel Jakub Dawidek under sponsorship from the FreeBSD
  Foundation.

OpenBSM 1.2 alpha 1

- Add Capsicum-related error numbers for FreeBSD: ENOTCAPABLE, ECAPMODE.
- Add Capsicum, process descriptor audit events for FreeBSD.
- Allow 0% minspace.
- Fixes from the clang static analyser.
- Fix expiration of trail files when the host parameter is used.
- Various typo fixes.
- Support for Solaris privilege and privilege set tokens.
- Documentation for getachost(), improvements for getacfilesz().
- Fix a directory descriptor leak that happened when audit trail partitions
  filled.
- Support for more Linux distributions with a partial contemporary endian.h.
- Improved escaping of XML-encapsulated BSM.
- A variety of minor documentation, style, and functional.

A separate commit will merge build changes to enable auditdistd, etc.

Obtained from: TrustedBSD Project
Sponsored by: The FreeBSD Foundation (auditdistd)

git-svn-id: svn://svn.freebsd.org/base/stable/9@244390 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years ago- Trim old entries.
hrs [Tue, 18 Dec 2012 06:55:13 +0000 (06:55 +0000)]
- Trim old entries.
- Update errata items.
- Bump &release.*;

git-svn-id: svn://svn.freebsd.org/base/stable/9@244379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243835:
kib [Tue, 18 Dec 2012 04:38:34 +0000 (04:38 +0000)]
MFC r243835:
The vnode_free_list_mtx is required unconditionally when iterating
over the active list.

MFC r244095:
Do not yield while owning a mutex, by stopping acquiring mount interlock.

MFC r244240:
Use user priority for the yield, do not spin on UP. Restructure the
iteration initializer and the iterator to remove code duplication.

git-svn-id: svn://svn.freebsd.org/base/stable/9@244376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f