olling terminal.
debug

  Turn on debug messages via syslog(3).

verbose

  Attempt to inform the user when security context is set.

select_context

  Attempt to ask the user for a custom security context role. If MLS is on, ask also for sensitivity level.

env_params

  Attempt to obtain a custom security context role from PAM environment. If MLS is on, obtain also sensitivity level. This option and the select_context option are mutually exclusive. The respective PAM environment variables are SELINUX_ROLE_REQUESTED, SELINUX_LEVEL_REQUESTED, and SELINUX_USE_CURRENT_RANGE. The first two variables are self describing and the last one if set to 1 makes the PAM module behave as if the use_current_range was specified on the command line of the module.

use_current_range

  Use the sensitivity level of the current process for the user context instead of the default level. Also suppresses asking of the sensitivity level from the user or obtaining it from PAM environment.

### 6.30.3. MODULE TYPES PROVIDED

Only the `session` module type is provided.

### 6.30.4. RETURN VALUES

PAM_SUCCESS

  The security context was set successfully.

PAM_SESSION_ERR

  Unable to get or set a valid context.

PAM_USER_UNKNOWN

  The user is not known to the system.

PAM_BUF_ERR

  Memory allocation error.

### 6.30.5. EXAMPLES

    auth     required  pam_unix.so
    session  required  pam_permit.so
    session  optional  pam_selinux.so

### 6.30.6. AUTHOR

pam_selinux was written by Dan Walsh <dwalsh@redhat.com>.

Prev | Up | Next
6.29. pam_securetty - limit root login to special devices | Home | 6.31. pam_sepermit - allow/reject access based on SELinux mode