pam_selinux(8)

NAME
pam_selinux - set the default security context after login via PAM.

SYNOPSIS
session optional /lib/security/pam_selinux.so

DESCRIPTION
In a nutshell, pam_selinux sets up the default security context for the next execed shell. When an application opens a session using pam_selinux, the shell that gets executed will be run in the default security context, or if the user chooses and the pam file allows the selected security context. Also the controlling tty will have it's security context modified to match the users.

ARGUMENTS

debug
    turns on debugging via syslog(3).

multiple
    tells pam_selinux.so to allow the user to select the security context they will login with, if the user has more than one role.

preserveuser
    tells pam_selinux.so to get the users current context, and maintain the user componant when generating the security context they will login with. This should be used for su type apps.

nottys
    Do not try to setup the ttys security context.

verbose
    attempt to inform the user when security context is set.

EXAMPLE
/etc/pam.d/some-login-program:
auth required /lib/security/pam_unix.so
session required /lib/security/pam_permit.so session optional /lib/security/pam_selinux.so

CAVEATS
Setting the following line will cause the login to fail auth sufficient /lib/security/pam_selinux.so verbose

SEE ALSO
pam_selinux_check(8)

BUGS
Let's hope not, but if you find any, please email the author.

AUTHOR
Dan Walsh <dwalsh@redhat.com>