diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:22:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:22:51 +0000 |
commit | 9ada0093e92388590c7368600ca4e9e3e376f0d0 (patch) | |
tree | a56fe41110023676d7082028cbaa47ca4b6e6164 /modules/pam_sepermit/sepermit.conf | |
parent | Initial commit. (diff) | |
download | pam-upstream/1.5.2.tar.xz pam-upstream/1.5.2.zip |
Adding upstream version 1.5.2.upstream/1.5.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | modules/pam_sepermit/sepermit.conf | 11 | ||||
-rw-r--r-- | modules/pam_sepermit/sepermit.conf.5 | 117 | ||||
-rw-r--r-- | modules/pam_sepermit/sepermit.conf.5.xml | 110 |
3 files changed, 238 insertions, 0 deletions
diff --git a/modules/pam_sepermit/sepermit.conf b/modules/pam_sepermit/sepermit.conf new file mode 100644 index 0000000..0a12cd8 --- /dev/null +++ b/modules/pam_sepermit/sepermit.conf @@ -0,0 +1,11 @@ +# /etc/security/sepermit.conf +# +# Each line contains either: +# - a user name +# - a group name, with @group syntax +# - a SELinux user name, with %seuser syntax +# Each line can contain optional arguments separated by : +# The possible arguments are: +# - exclusive - only single login session will +# be allowed for the user and the user's processes +# will be killed on logout diff --git a/modules/pam_sepermit/sepermit.conf.5 b/modules/pam_sepermit/sepermit.conf.5 new file mode 100644 index 0000000..b4b91c8 --- /dev/null +++ b/modules/pam_sepermit/sepermit.conf.5 @@ -0,0 +1,117 @@ +'\" t +.\" Title: sepermit.conf +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> +.\" Date: 09/03/2021 +.\" Manual: Linux-PAM Manual +.\" Source: Linux-PAM Manual +.\" Language: English +.\" +.TH "SEPERMIT\&.CONF" "5" "09/03/2021" "Linux-PAM Manual" "Linux\-PAM Manual" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +sepermit.conf \- configuration file for the pam_sepermit module +.SH "DESCRIPTION" +.PP +The lines of the configuration file have the following syntax: +.PP +\fI<user>\fR[:\fI<option>\fR:\fI<option>\fR\&.\&.\&.] +.PP +The +\fBuser\fR +can be specified in the following manner: +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +a username +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +a groupname, with +\fB@group\fR +syntax\&. This should not be confused with netgroups\&. +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +a SELinux user name with +\fB%seuser\fR +syntax\&. +.RE +.PP +The recognized options are: +.PP +\fBexclusive\fR +.RS 4 +Only single login session will be allowed for the user and the user\*(Aqs processes will be killed on logout\&. +.RE +.PP +\fBignore\fR +.RS 4 +The module will never return PAM_SUCCESS status for the user\&. It will return PAM_IGNORE if SELinux is in the enforcing mode, and PAM_AUTH_ERR otherwise\&. It is useful if you want to support passwordless guest users and other confined users with passwords simultaneously\&. +.RE +.PP +The lines which start with # character are comments and are ignored\&. +.SH "EXAMPLES" +.PP +These are some example lines which might be specified in +/etc/security/sepermit\&.conf\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +%guest_u:exclusive +%staff_u:ignore +%user_u:ignore + +.fi +.if n \{\ +.RE +.\} +.SH "SEE ALSO" +.PP +\fBpam_sepermit\fR(8), +\fBpam.d\fR(5), +\fBpam\fR(8), +\fBselinux\fR(8), +.SH "AUTHOR" +.PP +pam_sepermit and this manual page were written by Tomas Mraz <tmraz@redhat\&.com> diff --git a/modules/pam_sepermit/sepermit.conf.5.xml b/modules/pam_sepermit/sepermit.conf.5.xml new file mode 100644 index 0000000..511480f --- /dev/null +++ b/modules/pam_sepermit/sepermit.conf.5.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding='UTF-8'?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" + "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> + +<refentry id="sepermit.conf"> + + <refmeta> + <refentrytitle>sepermit.conf</refentrytitle> + <manvolnum>5</manvolnum> + <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo> + </refmeta> + + <refnamediv> + <refname>sepermit.conf</refname> + <refpurpose>configuration file for the pam_sepermit module</refpurpose> + </refnamediv> + + <refsect1 id='sepermit.conf-description'> + <title>DESCRIPTION</title> + <para> + The lines of the configuration file have the following syntax: + </para> + <para> + <replaceable><user></replaceable>[:<replaceable><option></replaceable>:<replaceable><option></replaceable>...] + </para> + <para> + The <emphasis remap='B'>user</emphasis> can be specified in the following manner: + </para> + <itemizedlist> + <listitem> + <para> + a username + </para> + </listitem> + <listitem> + <para> + a groupname, with <emphasis remap='B'>@group</emphasis> syntax. + This should not be confused with netgroups. + </para> + </listitem> + <listitem> + <para> + a SELinux user name with <emphasis remap='B'>%seuser</emphasis> syntax. + </para> + </listitem> + </itemizedlist> + + <para> + The recognized options are: + </para> + + <variablelist> + <varlistentry> + <term><option>exclusive</option></term> + <listitem> + <para> + Only single login session will be allowed for the user + and the user's processes will be killed on logout. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>ignore</option></term> + <listitem> + <para> + The module will never return PAM_SUCCESS status for the user. + It will return PAM_IGNORE if SELinux is in the enforcing mode, + and PAM_AUTH_ERR otherwise. It is useful if you want to support + passwordless guest users and other confined users with passwords + simultaneously. + </para> + </listitem> + </varlistentry> + </variablelist> + + <para> + The lines which start with # character are comments and are ignored. + </para> + </refsect1> + + <refsect1 id="sepermit.conf-examples"> + <title>EXAMPLES</title> + <para> + These are some example lines which might be specified in + <filename>/etc/security/sepermit.conf</filename>. + </para> + <programlisting> +%guest_u:exclusive +%staff_u:ignore +%user_u:ignore + </programlisting> + </refsect1> + + <refsect1 id="sepermit.conf-see_also"> + <title>SEE ALSO</title> + <para> + <citerefentry><refentrytitle>pam_sepermit</refentrytitle><manvolnum>8</manvolnum></citerefentry>, + <citerefentry><refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>, + <citerefentry><refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum></citerefentry>, + <citerefentry><refentrytitle>selinux</refentrytitle><manvolnum>8</manvolnum></citerefentry>, + </para> + </refsect1> + + <refsect1 id="sepermit.conf-author"> + <title>AUTHOR</title> + <para> + pam_sepermit and this manual page were written by Tomas Mraz <tmraz@redhat.com> + </para> + </refsect1> +</refentry> |