{"id":4317,"date":"2022-12-20T17:48:57","date_gmt":"2022-12-20T20:48:57","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/secolor-conf-man5\/"},"modified":"2022-12-20T17:48:57","modified_gmt":"2022-12-20T20:48:57","slug":"secolor-conf-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/secolor-conf-man5\/","title":{"rendered":"secolor.conf (man5)"},"content":{"rendered":"<h1 align=\"center\">secolor.conf<\/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=\"#EXAMPLES\">EXAMPLES<\/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\">secolor.conf \u2212 The SELinux color configuration file<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This optional file controls the color to be associated to the context components associated to the <i>raw<\/i> context passed by <b>selinux_raw_context_to_color<\/b>(3), when context related information is to be displayed in color by an SELinux-aware application.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>selinux_raw_context_to_color<\/b>(3) obtains this color information from the active policy <b>secolor.conf<\/b> file as returned by <b>selinux_colors_path<\/b>(3).<\/p>\n<h2>FILE FORMAT <a name=\"FILE FORMAT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The file format is as follows:<\/p>\n<p style=\"margin-left:22%;\"><b>color<\/b> <i>color_name<\/i> <b>= #<\/b><i>color_mask<\/i> <br \/> [&#8230;]<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>context_component string<\/i> <b>=<\/b> <i>fg_color_name bg_color_name<\/i> <br \/> [&#8230;]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where: <b><br \/> color<\/b><\/p>\n<p style=\"margin-left:22%;\">The color keyword. Each color entry is on a new line.<\/p>\n<p style=\"margin-left:11%;\"><i>color_name<\/i><\/p>\n<p style=\"margin-left:22%;\">A single word name for the color (e.g. red).<\/p>\n<p style=\"margin-left:11%;\"><i>color_mask<\/i><\/p>\n<p style=\"margin-left:22%;\">A color mask starting with a hash (#) that describes the hexadecimal RGB colors with black being #000000 and white being #ffffff.<\/p>\n<p style=\"margin-left:11%;\"><i>context_component<\/i><\/p>\n<p style=\"margin-left:22%;\">The context component name that must be one of the following:<\/p>\n<p style=\"margin-left:32%;\">user, role, type or range<\/p>\n<p style=\"margin-left:22%;\">Each <i>context_component string<\/i> &#8230; entry is on a new line.<\/p>\n<p style=\"margin-left:11%;\"><i>string<\/i><\/p>\n<p style=\"margin-left:22%;\">This is the <i>context_component<\/i> string that will be matched with the <i>raw<\/i> context component passed by <b>selinux_raw_context_to_color<\/b>(3). <br \/> A wildcard \u2019*\u2019 may be used to match any undefined string for the user, role and type <i>context_component<\/i> entries only.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>fg_color_name<\/i><\/p>\n<p style=\"margin-left:22%;\">The color_name string that will be used as the foreground color. A <i>color_mask<\/i> may also be used.<\/p>\n<p style=\"margin-left:11%;\"><i>bg_color_name<\/i><\/p>\n<p style=\"margin-left:22%;\">The color_name string that will be used as the background color. A <i>color_mask<\/i> may also be used.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Example 1 entries are:<\/p>\n<p style=\"margin-left:22%;\">color black = #000000 <br \/> color green = #008000 <br \/> color yellow = #ffff00 <br \/> color blue = #0000ff <br \/> color white = #ffffff <br \/> color red = #ff0000 <br \/> color orange = #ffa500 <br \/> color tan = #D2B48C<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">user bodies manpages.csv script_extrae_body.sh script.sh usr = black white <br \/> role bodies manpages.csv script_extrae_body.sh script.sh usr = white black <br \/> type bodies manpages.csv script_extrae_body.sh script.sh usr = tan orange <br \/> range s0\u2212s0:c0.c1023 = black green <br \/> range s1\u2212s1:c0.c1023 = white green <br \/> range s3\u2212s3:c0.c1023 = black tan <br \/> range s5\u2212s5:c0.c1023 = white blue <br \/> range s7\u2212s7:c0.c1023 = black red <br \/> range s9\u2212s9:c0.c1023 = black orange <br \/> range s15\u2212s15:c0.c1023 = black yellow<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Example 2 entries are:<\/p>\n<p style=\"margin-left:22%;\">color black = #000000 <br \/> color green = #008000 <br \/> color yellow = #ffff00 <br \/> color blue = #0000ff <br \/> color white = #ffffff <br \/> color red = #ff0000 <br \/> color orange = #ffa500 <br \/> color tan = #d2b48c<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">user unconfined_u = #ff0000 green <br \/> role unconfined_r = red #ffffff <br \/> type unconfined_t = red orange <br \/> user user_u = black green <br \/> role user_r = white black <br \/> type user_t = tan red <br \/> user xguest_u = black yellow <br \/> role xguest_r = black red <br \/> type xguest_t = black green <br \/> user sysadm_u = white black <br \/> range s0-s0:c0.c1023 = black white <br \/> user bodies manpages.csv script_extrae_body.sh script.sh usr = black white <br \/> role bodies manpages.csv script_extrae_body.sh script.sh usr = black white <br \/> type bodies manpages.csv script_extrae_body.sh script.sh usr = black white<\/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_raw_context_to_color<\/b>(3), <b>selinux_colors_path<\/b>(3)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  secolor.conf \u2212 The SELinux color 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,1291,1334],"class_list":["post-4317","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-secolor"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4317","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=4317"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4317\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}