1PAM_SEPERMIT(8) Linux-PAM Manual PAM_SEPERMIT(8)
2
3
4
6 pam_sepermit - PAM module to allow/deny login depending on SELinux
7 enforcement state
8
10 pam_sepermit.so [debug] [conf=/path/to/config/file]
11
13 The pam_sepermit module allows or denies login depending on SELinux
14 enforcement state.
15
16 When the user which is logging in matches an entry in the config file
17 he is allowed access only when the SELinux is in enforcing mode.
18 Otherwise he is denied access. For users not matching any entry in the
19 config file the pam_sepermit module returns PAM_IGNORE return value.
20
21 The config file contains a list of user names one per line with
22 optional arguments. If the name is prefixed with @ character it means
23 that all users in the group name match. If it is prefixed with a %
24 character the SELinux user is used to match against the name instead of
25 the account name. Note that when SELinux is disabled the SELinux user
26 assigned to the account cannot be determined. This means that such
27 entries are never matched when SELinux is disabled and pam_sepermit
28 will return PAM_IGNORE.
29
30 See sepermit.conf(5) for details.
31
33 debug
34 Turns on debugging via syslog(3).
35
36 conf=/path/to/config/file
37 Path to alternative config file overriding the default.
38
40 The auth and account module types are provided.
41
43 PAM_AUTH_ERR
44 SELinux is disabled or in the permissive mode and the user matches.
45
46 PAM_SUCCESS
47 SELinux is in the enforcing mode and the user matches.
48
49 PAM_IGNORE
50 The user does not match any entry in the config file.
51
52 PAM_USER_UNKNOWN
53 The module was unable to determine the userĀ“s name.
54
55 PAM_SERVICE_ERR
56 Error during reading or parsing the config file.
57
59 /etc/security/sepermit.conf
60 Default configuration file
61
63 auth [success=done ignore=ignore default=bad] pam_sepermit.so
64 auth required pam_unix.so
65 account required pam_unix.so
66 session required pam_permit.so
67
68
70 sepermit.conf(5), pam.conf(5), pam.d(5), pam(8) selinux(8)
71
73 pam_sepermit and this manual page were written by Tomas Mraz
74 <tmraz@redhat.com>.
75
76
77
78Linux-PAM Manual 11/04/2009 PAM_SEPERMIT(8)