1PAM_SELINUX(8)                 Linux-PAM Manual                 PAM_SELINUX(8)
2
3
4

NAME

6       pam_selinux - PAM module to set the default security context
7

SYNOPSIS

9       pam_selinux.so [close] [debug] [open] [nottys] [verbose]
10                      [select_context] [use_current_range]
11

DESCRIPTION

13       In a nutshell, pam_selinux sets up the default security context for the
14       next execed shell.
15
16       When an application opens a session using pam_selinux, the shell that
17       gets executed will be run in the default security context, or if the
18       user chooses and the pam file allows the selected security context.
19       Also the controlling tty will have it´s security context modified to
20       match the users.
21
22       Adding pam_selinux into a pam file could cause other pam modules to
23       change their behavior if the exec another application. The close and
24       open option help mitigate this problem. close option will only cause
25       the close portion of the pam_selinux to execute, and open will only
26       cause the open portion to run. You can add pam_selinux to the config
27       file twice. Add the pam_selinux close as the executes the open pass
28       through the modules, pam_selinux open_session will happen last. When
29       PAM executes the close pass through the modules pam_selinux
30       close_session will happen first.
31

OPTIONS

33       close
34           Only execute the close_session portion of the module.
35
36       debug
37           Turns on debugging via syslog(3).
38
39       open
40           Only execute the open_session portion of the module.
41
42       nottys
43           Do not try to setup the ttys security context.
44
45       verbose
46           attempt to inform the user when security context is set.
47
48       select_context
49           Attempt to ask the user for a custom security context role. If MLS
50           is on ask also for sensitivity level.
51
52       use_current_range
53           Use the sensitivity range of the process for the user context. This
54           option and the select_context option are mutually exclusive.
55

MODULE SERVICES PROVIDED

57       Only the session service is supported.
58

RETURN VALUES

60       PAM_AUTH_ERR
61           Unable to get or set a valid context.
62
63       PAM_SUCCESS
64           The security context was set successfull.
65
66       PAM_USER_UNKNOWN
67           The user is not known to the system.
68

EXAMPLES

70           auth     required  pam_unix.so
71           session  required  pam_permit.so
72           session  optional  pam_selinux.so
73
74

SEE ALSO

76       pam.conf(5), pam.d(8), pam(8)
77

AUTHOR

79       pam_selinux was written by Dan Walsh <dwalsh@redhat.com>.
80
81
82
83Linux-PAM Manual                  11/28/2007                    PAM_SELINUX(8)
Impressum