| 1 |
.TH "failsafe_context" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration" |
| 2 |
.SH "NAME" |
| 3 |
failsafe_context \- The SELinux fail safe context configuration file |
| 4 |
. |
| 5 |
.SH "DESCRIPTION" |
| 6 |
The |
| 7 |
.I failsafe_context |
| 8 |
file allows SELinux-aware applications such as |
| 9 |
.BR PAM "(8) " |
| 10 |
to obtain a known valid login context for an administrator if no valid default entries can be found elsewhere. |
| 11 |
.sp |
| 12 |
.BR selinux_failsafe_context_path "(3) " |
| 13 |
will return the active policy path to this file. The default failsafe context file is: |
| 14 |
.RS |
| 15 |
.I /etc/selinux/{SELINUXTYPE}/contexts/failsafe_context |
| 16 |
.RE |
| 17 |
.sp |
| 18 |
Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)). |
| 19 |
.sp |
| 20 |
The following functions read this file from the active policy path if they cannot obtain a default context: |
| 21 |
.br |
| 22 |
.RS |
| 23 |
.BR get_default_context "(3) " |
| 24 |
.br |
| 25 |
.BR get_ordered_context_list "(3) " |
| 26 |
.br |
| 27 |
.BR get_ordered_context_list_with_level "(3) " |
| 28 |
.br |
| 29 |
.BR get_default_context_with_level "(3) " |
| 30 |
.br |
| 31 |
.BR get_default_context_with_role "(3) " |
| 32 |
.br |
| 33 |
.BR get_default_context_with_rolelevel "(3) " |
| 34 |
.br |
| 35 |
.BR query_user_context "(3) " |
| 36 |
.br |
| 37 |
.BR manual_user_enter_context "(3) " |
| 38 |
.RE |
| 39 |
. |
| 40 |
.SH "FILE FORMAT" |
| 41 |
The file consists of a single line entry as follows: |
| 42 |
.RS |
| 43 |
\fIrole\fB:\fItype\fR[\fB:\fIrange\fR] |
| 44 |
.RE |
| 45 |
.sp |
| 46 |
Where: |
| 47 |
.RS |
| 48 |
.I role |
| 49 |
.I type |
| 50 |
.I range |
| 51 |
.RS |
| 52 |
A role, type and optional range (for MCS/MLS), separated by colons (:) to form a valid login process context for an administrator to access the system. |
| 53 |
.RE |
| 54 |
.RE |
| 55 |
. |
| 56 |
.SH "EXAMPLE" |
| 57 |
# ./contexts/failsafe_context |
| 58 |
.br |
| 59 |
unconfined_r:unconfined_t:s0 |
| 60 |
. |
| 61 |
.SH "SEE ALSO" |
| 62 |
.ad l |
| 63 |
.nh |
| 64 |
.BR selinux "(8), " selinux_failsafe_context_path "(3), " PAM "(8), " selinux_default_type_path "(3), " get_default_context "(3), " get_ordered_context_list "(3), " get_ordered_context_list_with_level "(3), " get_default_context_with_level "(3), " get_default_context_with_role "(3), " get_default_context_with_rolelevel "(3), " query_user_context "(3), " manual_user_enter_context "(3), " selinux_config "(5) " |