<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libpam, branch stable/8</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFH (r272280, r272281, r272348): allow use with null user and rhost</title>
<updated>2014-10-01T10:35:52+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2014-10-01T10:35:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fd20cd866933b5b7024527b9bc5512bb8b22d253'/>
<id>fd20cd866933b5b7024527b9bc5512bb8b22d253</id>
<content type='text'>
PR:		83099 193927
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		83099 193927
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.</title>
<updated>2014-09-18T14:31:28+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2014-09-18T14:31:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=011909ff2e408f3d8dd06ee2947b192c5f80f95b'/>
<id>011909ff2e408f3d8dd06ee2947b192c5f80f95b</id>
<content type='text'>
PR:             83099
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:             83099
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 236106:</title>
<updated>2013-09-09T15:38:51+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2013-09-09T15:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=07068734eeeebe981f11084e87c0b28534f018f0'/>
<id>07068734eeeebe981f11084e87c0b28534f018f0</id>
<content type='text'>
Passing NULL as a key casues a segfault when loading SSH 1 keys.  Use
an empty string instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Passing NULL as a key casues a segfault when loading SSH 1 keys.  Use
an empty string instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r241844:</title>
<updated>2012-11-04T01:20:57+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-11-04T01:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0fd5821593169e03057b49e2672d7bb5fda8e7b3'/>
<id>0fd5821593169e03057b49e2672d7bb5fda8e7b3</id>
<content type='text'>
	remove duplicate semicolons where possible.

Approved by:	cperciva (implicit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	remove duplicate semicolons where possible.

Approved by:	cperciva (implicit)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r235873:</title>
<updated>2012-06-20T23:47:48+00:00</updated>
<author>
<name>Warren Block</name>
<email>wblock@FreeBSD.org</email>
</author>
<published>2012-06-20T23:47:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=82ea14c7df35409571e94e5a8ba5269c2393b163'/>
<id>82ea14c7df35409571e94e5a8ba5269c2393b163</id>
<content type='text'>
Fixes to man8 groff mandoc style, usage mistakes, or typos.

Includes a partial MFC of r233648 for sbin/gvinum/gvinum.8.

PR:		168016
Submitted by:	Nobuyuki Koganemaru
Approved by:	gjb (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes to man8 groff mandoc style, usage mistakes, or typos.

Includes a partial MFC of r233648 for sbin/gvinum/gvinum.8.

PR:		168016
Submitted by:	Nobuyuki Koganemaru
Approved by:	gjb (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r233507:</title>
<updated>2012-04-30T13:37:07+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2012-04-30T13:37:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dbe678963fae6e4b89a3f17d3c56b93a8331d0fa'/>
<id>dbe678963fae6e4b89a3f17d3c56b93a8331d0fa</id>
<content type='text'>
Use program exit status as pam_exec return code (optional)

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

The following changes are related to this new feature but they apply no
matter if the "return_prog_exit_status" option is set or not.

The environment passed to the program is extended:
    o  $PAM_SM_FUNC contains the name of the PAM service module function
       (eg. pam_sm_authenticate).
    o  All valid PAM return codes' numerical values are available
       through variables named after the return code name. For instance,
       $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED.

pam_exec return code better reflects what went on:
    o  If the program exits with !0, the return code is now
       PAM_PERM_DENIED, not PAM_SYSTEM_ERR.
    o  If the program fails because of a signal (WIFSIGNALED) or doesn't
       terminate normally (!WIFEXITED), the return code is now
       PAM_SERVICE_ERR, not PAM_SYSTEM_ERR.
    o  If a syscall in pam_exec fails, the return code remains
       PAM_SYSTEM_ERR.

waitpid(2) is called in a loop. If it returns because of EINTR, do it
again. Before, it would return PAM_SYSTEM_ERR without waiting for the
child to exit.

Several log messages now include the PAM service module function name.

The man page is updated accordingly.

Reviewed by:	des@
Sponsored by:	Yakaz (http://www.yakaz.com)

MFC r234184:
Fix error messages containing the executed command name

Before, we took the first argument to pam_exec(8). With the addition of
options in front of the command, this could be wrong.

Now, options are parsed before calling _pam_exec() and messages contain
the proper command name.

While here, fix a warning.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use program exit status as pam_exec return code (optional)

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

The following changes are related to this new feature but they apply no
matter if the "return_prog_exit_status" option is set or not.

The environment passed to the program is extended:
    o  $PAM_SM_FUNC contains the name of the PAM service module function
       (eg. pam_sm_authenticate).
    o  All valid PAM return codes' numerical values are available
       through variables named after the return code name. For instance,
       $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED.

pam_exec return code better reflects what went on:
    o  If the program exits with !0, the return code is now
       PAM_PERM_DENIED, not PAM_SYSTEM_ERR.
    o  If the program fails because of a signal (WIFSIGNALED) or doesn't
       terminate normally (!WIFEXITED), the return code is now
       PAM_SERVICE_ERR, not PAM_SYSTEM_ERR.
    o  If a syscall in pam_exec fails, the return code remains
       PAM_SYSTEM_ERR.

waitpid(2) is called in a loop. If it returns because of EINTR, do it
again. Before, it would return PAM_SYSTEM_ERR without waiting for the
child to exit.

Several log messages now include the PAM service module function name.

The man page is updated accordingly.

Reviewed by:	des@
Sponsored by:	Yakaz (http://www.yakaz.com)

MFC r234184:
Fix error messages containing the executed command name

Before, we took the first argument to pam_exec(8). With the addition of
options in front of the command, this could be wrong.

Now, options are parsed before calling _pam_exec() and messages contain
the proper command name.

While here, fix a warning.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH r203377, r215680, r227044, r227105: mainly, respect passwordtime.</title>
<updated>2012-04-27T21:40:51+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2012-04-27T21:40:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=40870313975c35bc45e9de77c67effc9012c0105'/>
<id>40870313975c35bc45e9de77c67effc9012c0105</id>
<content type='text'>
PR:		93310, 93473
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		93310, 93473
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH r227757: check for null passphrases, since openssl doesn't</title>
<updated>2011-12-11T20:38:36+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2011-12-11T20:38:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=94e0d56230e9a0496ce7d1740ae47abae80b924c'/>
<id>94e0d56230e9a0496ce7d1740ae47abae80b924c</id>
<content type='text'>
Security:	prevents users with unencrypted ssh keys (prohibited
		unless the nullok option is specified) from logging in
		by providing a bogus non-null passphrase.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Security:	prevents users with unencrypted ssh keys (prohibited
		unless the nullok option is specified) from logging in
		by providing a bogus non-null passphrase.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r203958: %U was macroized in mdoc(7), escape.</title>
<updated>2010-10-06T08:05:53+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2010-10-06T08:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5162b7f42041be46284a31c27418d5583bbfd2c4'/>
<id>5162b7f42041be46284a31c27418d5583bbfd2c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>merge r196650 (check that tty != NULL, prevents segfault on session close)</title>
<updated>2010-06-22T15:01:23+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2010-06-22T15:01:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e41e850bfbe8fd96900b1f8b8e3eb0115cfa7698'/>
<id>e41e850bfbe8fd96900b1f8b8e3eb0115cfa7698</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
