mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-23 17:53:40 +08:00
pam_env: document when the module is executed
Document that pam_env.so is only called by pam_setcred() and not by pam_authenticate() when added to the auth stack. Resolves: https://github.com/linux-pam/linux-pam/issues/680 Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
This commit is contained in:
parent
140b407ed4
commit
78e3988dd3
@ -114,6 +114,19 @@
|
||||
Since setting of PAM environment variables can have side effects
|
||||
to other modules, this module should be the last one on the stack.
|
||||
</para>
|
||||
<para>
|
||||
This module is only executed if the main application calls
|
||||
<citerefentry>
|
||||
<refentrytitle>pam_setcred</refentrytitle><manvolnum>3</manvolnum>
|
||||
</citerefentry> or
|
||||
<citerefentry>
|
||||
<refentrytitle>pam_open_session</refentrytitle><manvolnum>3</manvolnum>
|
||||
</citerefentry>.
|
||||
The module does nothing and returns <emphasis>PAM_IGNORE</emphasis> if called by
|
||||
<citerefentry>
|
||||
<refentrytitle>pam_authenticate</refentrytitle><manvolnum>3</manvolnum>
|
||||
</citerefentry>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 xml:id="pam_env-options">
|
||||
@ -244,7 +257,11 @@
|
||||
<term>PAM_IGNORE</term>
|
||||
<listitem>
|
||||
<para>
|
||||
No pam_env.conf and environment file was found.
|
||||
No pam_env.conf and environment file was found or the module got
|
||||
called by
|
||||
<citerefentry>
|
||||
<refentrytitle>pam_authenticate</refentrytitle><manvolnum>3</manvolnum>
|
||||
</citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -309,4 +326,4 @@
|
||||
pam_env was written by Dave Kinchlea <kinch@kinch.ark.com>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</refentry>
|
||||
|
Loading…
Reference in New Issue
Block a user