MFC r241061:
	Document the security.bsd.unprivileged_idprio in idprio(1) in addition to rtprio(2).

Approved by:	cperciva (implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@241171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r241062:
	clarify the wording for 'first' and 'last'

Approved by:	cperciva (implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@241173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r241115:
	Indicate (loudly) that ports csup is going away.

	While here clarify some other portions.

Approved by:	cperciva (implicit)


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

Make setfacl(1) behave properly in situations like "setfacl -kd".


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

Make "setfacl -bd" an alias for "setfacl -k".  Previously it would crash
on assert.

PR:		bin/165807


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

In getfacl(1) manual page, mention where to read about the ACL syntax.
PR submitter suggested adding it to acl(3) instead, but I don't think
pointing ordinary users at section 3 is a good idea.

PR:		docs/162380


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

Fix an error in setfacl(1) that manifested like this:

# setfacl -m u:trasz:rwx x
# setfacl -m u:root:rwx x
# getfacl x
# file: x
# owner: root
# group: wheel
user::rw-
user:root:rwx
user:trasz:rwx
group::r--
mask::rwx
other::r--
# setfacl -m u:root:rwx x
setfacl: x: acl_calc_mask() failed: Invalid argument
setfacl: x: failed to set ACL mask

For NFSv4 ACLs, this sort of situation would result in duplicated
entries.


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

Explicitly mention that "cp -p" copies ACLs.

PR:		docs/168962


git-svn-id: svn://svn.freebsd.org/base/stable/9@241188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r241092:
Add the UPDATING note about padlock rng support requiring the config change.


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

Fix pseudo checksum calculation.

This fixes ipfilter w/ network controllers that implement only
partial rx csum offloading.

PR:		106438
Obtained from:	upstream


git-svn-id: svn://svn.freebsd.org/base/stable/9@241192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert changes that ocassionally got into r241192.

Pointy hat to:	me


git-svn-id: svn://svn.freebsd.org/base/stable/9@241193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r240720
Modify the NFSv4 client so that it can handle owner
and owner_group strings that consist entirely of
digits, interpreting them as the uid/gid number.
This change was needed since new (>= 3.3) Linux
servers reply with these strings by default.
This change is mandated by the rfc3530bis draft.
Reported on freebsd-stable@ under the Subject
heading "Problem with Linux >= 3.3 as NFSv4 server"
by Norbert Aschendorff on Aug. 20, 2012.


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

Add a couple of nice quotes from Edward Everett Hale


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

Improve file rotation


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

There is no longer a need to abstract ${rcvar_manpage} as we are not
attempting to maintain compatibility with NetBSD for some years now.


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

Make systat(1) accept fractional number of seconds.
Make old alarm(3)-based code use select(2).


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

Reserve room for the terminating NUL when setting or getting kernel
environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include
space for the terminating NUL.


git-svn-id: svn://svn.freebsd.org/base/stable/9@241222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239612: Check the return value of sbuf_finish().


git-svn-id: svn://svn.freebsd.org/base/stable/9@241223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
condition.

Passing an invalid pointer results in undefined behaviour.

The wrappers in libthr access some of the data pointed to by the arguments
in userland, so that an invalid pointer will cause a signal and not an
[EFAULT] error return.

Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is
not a proper error in the sense that the call still commits (changing the
signal disposition or accepting the signal).


git-svn-id: svn://svn.freebsd.org/base/stable/9@241224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r240974: atrun: Do not assume that MAXLOGNAME <= 100.

The reserved space for fmt was exactly sufficient for a two-digit value of
MAXLOGNAME - 1.

PR:		bin/171815
Submitted by:	Jeremy Huddleston Sequoia


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