pam_sepermit.8.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
  4. <refentry id="pam_sepermit">
  5. <refmeta>
  6. <refentrytitle>pam_sepermit</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_sepermit-name">
  11. <refname>pam_sepermit</refname>
  12. <refpurpose>PAM module to allow/deny login depending on SELinux enforcement state</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_sepermit-cmdsynopsis">
  16. <command>pam_sepermit.so</command>
  17. <arg choice="opt">
  18. debug
  19. </arg>
  20. <arg choice="opt">
  21. conf=<replaceable>/path/to/config/file</replaceable>
  22. </arg>
  23. </cmdsynopsis>
  24. </refsynopsisdiv>
  25. <refsect1 id="pam_sepermit-description">
  26. <title>DESCRIPTION</title>
  27. <para>
  28. The pam_sepermit module allows or denies login depending on SELinux
  29. enforcement state.
  30. </para>
  31. <para>
  32. When the user which is logging in matches an entry in the config file
  33. he is allowed access only when the SELinux is in enforcing mode. Otherwise
  34. he is denied access. For users not matching any entry in the config file
  35. the pam_sepermit module returns PAM_IGNORE return value.
  36. </para>
  37. <para>
  38. The config file contains a list of user names one per line with optional arguments. If the
  39. <replaceable>name</replaceable> is prefixed with <emphasis>@</emphasis> character it means that all
  40. users in the group <replaceable>name</replaceable> match. If it is prefixed
  41. with a <emphasis>%</emphasis> character the SELinux user is used to match against the <replaceable>name</replaceable>
  42. instead of the account name. Note that when SELinux is disabled the
  43. SELinux user assigned to the account cannot be determined. This means that
  44. such entries are never matched when SELinux is disabled and pam_sepermit
  45. will return PAM_IGNORE.
  46. </para>
  47. <para>
  48. See <citerefentry>
  49. <refentrytitle>sepermit.conf</refentrytitle><manvolnum>5</manvolnum>
  50. </citerefentry> for details.
  51. </para>
  52. </refsect1>
  53. <refsect1 id="pam_sepermit-options">
  54. <title>OPTIONS</title>
  55. <variablelist>
  56. <varlistentry>
  57. <term>
  58. <option>debug</option>
  59. </term>
  60. <listitem>
  61. <para>
  62. Turns on debugging via
  63. <citerefentry>
  64. <refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum>
  65. </citerefentry>.
  66. </para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry>
  70. <term>
  71. <option>conf=<replaceable>/path/to/config/file</replaceable></option>
  72. </term>
  73. <listitem>
  74. <para>
  75. Path to alternative config file overriding the default.
  76. </para>
  77. </listitem>
  78. </varlistentry>
  79. </variablelist>
  80. </refsect1>
  81. <refsect1 id="pam_sepermit-types">
  82. <title>MODULE TYPES PROVIDED</title>
  83. <para>
  84. The <option>auth</option> and <option>account</option>
  85. module types are provided.
  86. </para>
  87. </refsect1>
  88. <refsect1 id='pam_sepermit-return_values'>
  89. <title>RETURN VALUES</title>
  90. <variablelist>
  91. <varlistentry>
  92. <term>PAM_AUTH_ERR</term>
  93. <listitem>
  94. <para>
  95. SELinux is disabled or in the permissive mode and the user
  96. matches.
  97. </para>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry>
  101. <term>PAM_SUCCESS</term>
  102. <listitem>
  103. <para>
  104. SELinux is in the enforcing mode and the user matches.
  105. </para>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry>
  109. <term>PAM_IGNORE</term>
  110. <listitem>
  111. <para>
  112. The user does not match any entry in the config file.
  113. </para>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry>
  117. <term>PAM_USER_UNKNOWN</term>
  118. <listitem>
  119. <para>
  120. The module was unable to determine the user's name.
  121. </para>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry>
  125. <term>PAM_SERVICE_ERR</term>
  126. <listitem>
  127. <para>
  128. Error during reading or parsing the config file.
  129. </para>
  130. </listitem>
  131. </varlistentry>
  132. </variablelist>
  133. </refsect1>
  134. <refsect1 id="pam_sepermit-files">
  135. <title>FILES</title>
  136. <variablelist>
  137. <varlistentry>
  138. <term><filename>/etc/security/sepermit.conf</filename></term>
  139. <listitem>
  140. <para>Default configuration file</para>
  141. </listitem>
  142. </varlistentry>
  143. </variablelist>
  144. </refsect1>
  145. <refsect1 id='pam_sepermit-examples'>
  146. <title>EXAMPLES</title>
  147. <programlisting>
  148. auth [success=done ignore=ignore default=bad] pam_sepermit.so
  149. auth required pam_unix.so
  150. account required pam_unix.so
  151. session required pam_permit.so
  152. </programlisting>
  153. </refsect1>
  154. <refsect1 id='pam_sepermit-see_also'>
  155. <title>SEE ALSO</title>
  156. <para>
  157. <citerefentry>
  158. <refentrytitle>sepermit.conf</refentrytitle><manvolnum>5</manvolnum>
  159. </citerefentry>,
  160. <citerefentry>
  161. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  162. </citerefentry>,
  163. <citerefentry>
  164. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  165. </citerefentry>,
  166. <citerefentry>
  167. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  168. </citerefentry>
  169. <citerefentry>
  170. <refentrytitle>selinux</refentrytitle><manvolnum>8</manvolnum>
  171. </citerefentry>
  172. </para>
  173. </refsect1>
  174. <refsect1 id='pam_sepermit-author'>
  175. <title>AUTHOR</title>
  176. <para>
  177. pam_sepermit and this manual page were written by Tomas Mraz &lt;tmraz@redhat.com&gt;.
  178. </para>
  179. </refsect1>
  180. </refentry>