Commit Graph

2068 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav
e9ae7bc234 This commit disables chain caching.
Chain caching is a feature of Linux-PAM, where pam_authenticate() and
pam_open_session() "freeze" the chain so that their companion
primitive (pam_setcred() and pam_close_session() respectively) will
call the exact same modules, skipping those that failed in the
previous call.

There are several reasons not to do this, the most prominent of which
is that it makes it impossible to call pam_setcred() without first
calling pam_authenticate() - which is perfectly valid according to
DCE/RFC 86.0 and XSSO, and is necessary to make 'login -f' work.

Instead of chain caching, implement something similar to the way
Solaris' libpam behaves: pam_setcred treats "sufficient" modules as if
they were "required", i.e. does not break the chain when they succeed.

PAM modules whose pam_sm_setcred() should not be called unless their
pam_sm_authenticate() succeeded can simply set a state variable using
pam_set_data() in pam_sm_authenticate(), and use pam_get_data() to
check it in pam_sm_setcred().

Sponsored by:	DARPA, NAI Labs
2002-01-24 15:30:03 +00:00
Giorgos Keramidas
0063afffd5 dhclient-script.conf lives in /etc and not /sbin.
PR:		docs/32008
Submitted by:	John E Hein <jhein@timing.com>
Approved by:	obrien
2002-01-23 13:56:41 +00:00
Mark Murray
73d7223603 WARNS=4 fixes.
OK'ed by:	des
2002-01-20 17:54:33 +00:00
Ruslan Ermilov
a8be241673 MFV: Initialize %I register. 2002-01-18 15:28:32 +00:00
Ruslan Ermilov
d73b73ae30 This commit was generated by cvs2svn to compensate for changes in r89500,
which included commits to RCS files with non-trunk default branches.
2002-01-18 15:25:01 +00:00
Ruslan Ermilov
2a91b0e9f4 From ChangeLog:
: 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
:
: 	* tmac/doc.common: Initialize %I register for the %I macro to
: 	avoid (harmless) warning.
: 	* tmac/doc.tmac (Bd): There is no reason to enforce -compact
: 	when in the SYNOPSIS section.
2002-01-18 15:25:01 +00:00
Ruslan Ermilov
e132e98f0d Satisfy pedantic readers.
PR:		docs/31260

From ChangeLog:

: 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/groff_mdoc.man: Minor fixes.
2002-01-15 17:15:28 +00:00
Ruslan Ermilov
f5c1e082d2 This commit was generated by cvs2svn to compensate for changes in r89397,
which included commits to RCS files with non-trunk default branches.
2002-01-15 17:15:28 +00:00
Andrey A. Chernov
c15c659486 This commit was generated by cvs2svn to compensate for changes in r89354,
which included commits to RCS files with non-trunk default branches.
2002-01-14 15:58:32 +00:00
Andrey A. Chernov
7e6a63408c Import official baudrate fix into the vendor branch 2002-01-14 15:58:32 +00:00
Alfred Perlstein
ff3ec7455e Backout inclusion of sys/queue.h 2002-01-14 09:19:18 +00:00
Alfred Perlstein
a40d159b40 add queue.h, now needed for file.h 2002-01-14 04:12:54 +00:00
Ruslan Ermilov
87e24bf876 MFV: NetBSD style document titles (OS/arch). 2002-01-10 18:07:50 +00:00
Ruslan Ermilov
7715c92746 Print architecture right after an operating system name in a title.
From ChangeLog:

: 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
:
:   * tmac/doc-common (Dt): Change output of architecture strings.
:   Do some syntax cleanup.
:   * tmac/groff_mdoc.man: Updated.
2002-01-10 18:04:04 +00:00
Ruslan Ermilov
45a3e7b196 This commit was generated by cvs2svn to compensate for changes in r89232,
which included commits to RCS files with non-trunk default branches.
2002-01-10 18:04:04 +00:00
Joerg Wunsch
32eb5fea1a Make the -a flag to opiekey(1) actually work as advertised.
Reviewed by:	ache, audit, security
MFC after:	1 week
2002-01-09 13:36:26 +00:00
Paul Saab
8fd4165cc4 Merge vendor changes onto mainline. 2002-01-07 20:37:09 +00:00
Paul Saab
5e27b2f5a3 This commit was generated by cvs2svn to compensate for changes in r89019,
which included commits to RCS files with non-trunk default branches.
2002-01-07 20:29:38 +00:00
Paul Saab
c9346414d9 Import less v371 2002-01-07 20:29:38 +00:00
Sheldon Hearn
2228a60af1 This commit was generated by cvs2svn to compensate for changes in r89010,
which included commits to RCS files with non-trunk default branches.
2002-01-07 14:26:12 +00:00
Sheldon Hearn
55228c2a54 Import patch from vendor (taken from nvi-1.81.5) that fixes problematic
interaction between the leftright and number options.

PR:		bin/23912
Reported by:	"Stephen D. Spencer" <gladiatr@boneyard.lawrence.ks.us>
Obtained from:	skimo@kotnet.org
2002-01-07 14:26:12 +00:00
Andrey A. Chernov
57766554c6 Repo copied to /usr/src/lib/libopie/ 2002-01-03 15:58:11 +00:00
Sheldon Hearn
8908973ae2 This commit was generated by cvs2svn to compensate for changes in r88492,
which included commits to RCS files with non-trunk default branches.
2001-12-26 15:35:10 +00:00
Sheldon Hearn
8d4076f081 Import smbfs-1.4.3. 2001-12-26 15:35:10 +00:00
Ruslan Ermilov
ec60ea2faa MFV: FreeBSD 4.4, FreeBSD 4.5, NetBSD 1.6, POSIX.1-2001. 2001-12-24 08:59:48 +00:00
Ruslan Ermilov
1cc5490cec From ChangeLog:
: 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/doc-common, tmac/doc-syms: Small updates.

This adds support for FreeBSD 4.4, FreeBSD 4.5, NetBSD 1.6,
and POSIX.1-2001.
2001-12-24 08:53:15 +00:00
Ruslan Ermilov
e8777213c8 Bring in latest (cosmetic) vendor fixes to this file. 2001-12-21 11:46:21 +00:00
Ruslan Ermilov
6047b0568b This commit was generated by cvs2svn to compensate for changes in r88345,
which included commits to RCS files with non-trunk default branches.
2001-12-21 11:46:21 +00:00
Ruslan Ermilov
e3c3901cc3 MFV: Handle long document titles better. 2001-12-21 11:35:20 +00:00
Ruslan Ermilov
0988851e6e From ChangeLog:
: 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/doc-common (doc-header): Handle very long document titles
:         better.

PR:		docs/10349
2001-12-21 11:31:30 +00:00
Sheldon Hearn
df3342d686 Import smbfs-1.4.2. 2001-12-20 16:16:25 +00:00
Sheldon Hearn
2731c8aafa This commit was generated by cvs2svn to compensate for changes in r88282,
which included commits to RCS files with non-trunk default branches.
2001-12-20 16:16:25 +00:00
Peter Wemm
0558ae2a89 This commit was generated by cvs2svn to compensate for changes in r88237,
which included commits to RCS files with non-trunk default branches.
2001-12-20 02:23:44 +00:00
Peter Wemm
855ee8c509 Fix the 'nm' -> segfault bug (on the vendor branch). This has been fixed
the same way in the cygnus base source.  The problem was that bfd was
writing to memory obtained from malloc(0).    The next import will update
this if necessary.  I'm not sure of the origins of this patch.

Discussed with: obrien
2001-12-20 02:23:44 +00:00
David E. O'Brien
5cc8f315cb This commit was generated by cvs2svn to compensate for changes in r88109,
which included commits to RCS files with non-trunk default branches.
2001-12-18 04:13:58 +00:00
David E. O'Brien
8489cc4415 Virgin import of GCC 3.0.2's libf2c 2001-12-18 04:13:58 +00:00
Ruslan Ermilov
3f36940560 mdoc(7) police: remove -r from SYNOPSIS, sort -p in DESCRIPTION. 2001-12-14 14:41:07 +00:00
Sheldon Hearn
adbc0684a0 Detail the smbfs-1.4.1 import. 2001-12-14 11:11:31 +00:00
Sheldon Hearn
f1b9d12761 Import smbfs-1.4.1.
This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.

Obtained from:	Boris Popov via ftp://ftp.butya.kz/pub/smbfs/
2001-12-14 11:06:03 +00:00
Sheldon Hearn
c45579ad41 This commit was generated by cvs2svn to compensate for changes in r87866,
which included commits to RCS files with non-trunk default branches.
2001-12-14 11:06:03 +00:00
Jordan K. Hubbard
d1f21093cd Don't assume that the number of fds to select on is known quantity (in
this case 16).  Use dynamic FD_SETs and calculated high-water marks
throughout.  There are also too many versions of telnet in the tree.

Obtained from:  OpenBSD and Apple's Radar database
MFC after:      2 days
2001-12-09 09:53:27 +00:00
Dag-Erling Smørgrav
cab8cba36f Although the previous went some way towards fixing the pam.conf / pam.d
problem, it still didn't DTRT for services that did not have a service-
specific policy if /etc/pam.d existed but did not contain an "other"
policy.  This fixes the problems some people have experienced with sudo.
And I almost didn't have to use goto.

The current configuration sequence is:

  1) Look for /etc/pam.d/foo

  2) If PAM_READ_BOTH_CONFS is defined, or step 1) failed, look for
     foo in /etc/pam.conf

  3) Look for /etc/pam.d/other (to fill in the gaps)

  4) If PAM_READ_BOTH_CONFS is defined, or step 3) failed, look for
     other in /etc/pam.conf

I believe this is the intended behaviour of the original code.  The least
surprising behaviour seems to be when PAM_READ_BOTH_CONFS is not defined -
/etc/pam.d/foo will be preferred over /etc/pam.conf, but the latter will
serve as a backup if the former does not exist.

Sponsored by:	DARPA, NAI Labs
2001-12-07 00:37:10 +00:00
Dag-Erling Smørgrav
0fbda1fc58 Fix a bug that made PAM fail if /etc/pam.d/ existed but was empty.
Sponsored by:	DARPA, NAI Labs
2001-12-05 17:05:15 +00:00
Dag-Erling Smørgrav
f6abb36383 Clean up namespace pollution by prepending underscores to argument names in
function prototypes (or, in a few cases, removing argument names altogether).

Sponsored by:	DARPA, NAI Labs
2001-12-05 16:31:34 +00:00
Dag-Erling Smørgrav
1c04976ad1 This file isn't used; it's an older version of include/security/pam_misc.h.
Sponsored by:	DARPA, NAI Labs
2001-12-05 16:14:43 +00:00
Ruslan Ermilov
5c5c92aff0 Fixed bugs from previous revision.
Removed -s from SYNOPSIS and restored -S in DESCRIPTION.
2001-12-04 16:02:36 +00:00
John Hay
de0dff907e Protect variables and function prototypes that are only used in the INET6
case with an ifdef INET6.

This make the fixit floppy compile again.

Reviewed by:	markm
2001-12-03 17:42:02 +00:00
Mark Murray
5eb2b33ad8 More help for alpha WARNS=2. This code is, erm, unusual. Anyone who
feels like rewriting it will meet no objection from me.
2001-12-03 12:16:40 +00:00
Mark Murray
54ab3ed82b help the alphas out with the WARNS=2 stuff. 2001-12-03 12:13:18 +00:00
Mark Murray
0a4814ee9a Fix namespace pollution by protecting names used as arguments.
Reported by:	bde
2001-12-01 19:32:18 +00:00