{"id":4301,"date":"2022-12-20T17:48:54","date_gmt":"2022-12-20T20:48:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/failsafe_context-man5\/"},"modified":"2022-12-20T17:48:54","modified_gmt":"2022-12-20T20:48:54","slug":"failsafe_context-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/failsafe_context-man5\/","title":{"rendered":"failsafe_context (man5)"},"content":{"rendered":"<h1 align=\"center\">failsafe_context<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILE FORMAT\">FILE FORMAT<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">failsafe_context \u2212 The SELinux fail safe context configuration file<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>failsafe_context<\/i> file allows SELinux-aware applications such as <b>PAM<\/b>(8) to obtain a known valid login context for an administrator if no valid default entries can be found elsewhere.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>selinux_failsafe_context_path<\/b>(3) will return the active policy path to this file. The default failsafe context file is:<\/p>\n<p style=\"margin-left:22%;\"><i>\/etc\/selinux\/{SELINUXTYPE}\/contexts\/failsafe_context<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where <i>{SELINUXTYPE}<\/i> is the entry from the selinux configuration file <i>config<\/i> (see <b>selinux_config<\/b>(5)).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following functions read this file from the active policy path if they cannot obtain a default context:<\/p>\n<p style=\"margin-left:22%;\"><b>get_default_context<\/b>(3) <b><br \/> get_ordered_context_list<\/b>(3) <b><br \/> get_ordered_context_list_with_level<\/b>(3) <b><br \/> get_default_context_with_level<\/b>(3) <b><br \/> get_default_context_with_role<\/b>(3) <b><br \/> get_default_context_with_rolelevel<\/b>(3) <b><br \/> query_user_context<\/b>(3) <b><br \/> manual_user_enter_context<\/b>(3)<\/p>\n<h2>FILE FORMAT <a name=\"FILE FORMAT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The file consists of a single line entry as follows:<\/p>\n<p style=\"margin-left:22%;\"><i>role<\/i><b>:<\/b><i>type<\/i>[<b>:<\/b><i>range<\/i>]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where:<\/p>\n<p style=\"margin-left:22%;\"><i>role type range<\/i><\/p>\n<p style=\"margin-left:32%;\">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.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"># .\/contexts\/failsafe_context <br \/> unconfined_r:unconfined_t:s0<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>selinux<\/b>(8), <b>selinux_failsafe_context_path<\/b>(3), <b>PAM<\/b>(8), <b>selinux_default_type_path<\/b>(3), <b>get_default_context<\/b>(3), <b>get_ordered_context_list<\/b>(3), <b>get_ordered_context_list_with_level<\/b>(3), <b>get_default_context_with_level<\/b>(3), <b>get_default_context_with_role<\/b>(3), <b>get_default_context_with_rolelevel<\/b>(3), <b>query_user_context<\/b>(3), <b>manual_user_enter_context<\/b>(3), <b>selinux_config<\/b>(5)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  failsafe_context \u2212 The SELinux fail safe context configuration file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1320,1291],"class_list":["post-4301","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-failsafe_context","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4301"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4301\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}