14aba2
.TH "secolor.conf" "8" "08 April 2011" "SELinux API documentation"
14aba2
.SH "NAME"
14aba2
secolor.conf \- The SELinux color configuration file
14aba2
.
14aba2
.SH "DESCRIPTION"
14aba2
The 
14aba2
.I /etc/selinux/{SELINUXTYPE}/secolor.conf
14aba2
configuation file controls the color to be associated to the context components associated to the 
14aba2
.I raw
14aba2
context passed by 
14aba2
.BR selinux_raw_context_to_color "(3),"
14aba2
when context related information is to be displayed in color by an SELinux-aware application. 
14aba2
.sp
14aba2
.BR selinux_raw_context_to_color "(3)"
14aba2
obtains this color information from the active policy 
14aba2
.B secolor.conf
14aba2
file as returned by 
14aba2
.BR selinux_colors_path "(3)."
14aba2
.
14aba2
.SH "FILE FORMAT"
14aba2
The file format is as follows:
14aba2
.RS
14aba2
.B color
14aba2
.I color_name
14aba2
.BI "= #"color_mask
14aba2
.br
14aba2
[...]
14aba2
.sp
14aba2
.I context_component string
14aba2
.B =
14aba2
.I fg_color_name bg_color_name
14aba2
.br
14aba2
[...]
14aba2
.sp 
14aba2
.RE
14aba2
14aba2
Where:
14aba2
.br
14aba2
.B color
14aba2
.RS
14aba2
The color keyword. Each color entry is on a new line.
14aba2
.RE
14aba2
.I color_name
14aba2
.RS
14aba2
A single word name for the color (e.g. red).
14aba2
.RE
14aba2
.I color_mask
14aba2
.RS
14aba2
A color mask starting with a hash (#) that describes the hexadecimal RGB colors with black being #000000 and white being #ffffff.
14aba2
.RE
14aba2
.I context_component
14aba2
.RS
14aba2
The context component name that must be one of the following:
14aba2
.br
14aba2
.RS
14aba2
user, role, type or range 
14aba2
.RE
14aba2
Each
14aba2
.IR context_component " " string " ..."
14aba2
entry is on a new line.
14aba2
.RE
14aba2
.I string
14aba2
.RS
14aba2
This is the 
14aba2
.I context_component
14aba2
string that will be matched with the 
14aba2
.I raw
14aba2
context component passed by
14aba2
.BR selinux_raw_context_to_color "(3)."
14aba2
.br
14aba2
A wildcard '*' may be used to match any undefined string for the user, role and type 
14aba2
.I context_component
14aba2
entries only.
14aba2
.RE
14aba2
14aba2
.I fg_color_name
14aba2
.RS
14aba2
The color_name string that will be used as the foreground color.
14aba2
A 
14aba2
.I color_mask
14aba2
may also be used.
14aba2
.RE
14aba2
.I bg_color_name
14aba2
.RS
14aba2
The color_name string that will be used as the background color.
14aba2
A 
14aba2
.I color_mask
14aba2
may also be used.
14aba2
.RE
14aba2
.
14aba2
.SH "EXAMPLES"
14aba2
Example 1 entries are:
14aba2
.RS
14aba2
color black  = #000000
14aba2
.br
14aba2
color green  = #008000
14aba2
.br
14aba2
color yellow = #ffff00
14aba2
.br
14aba2
color blue   = #0000ff
14aba2
.br
14aba2
color white  = #ffffff
14aba2
.br
14aba2
color red    = #ff0000
14aba2
.br
14aba2
color orange = #ffa500
14aba2
.br
14aba2
color tan    = #D2B48C
14aba2
.sp
14aba2
user * = black white
14aba2
.br
14aba2
role * = white black
14aba2
.br
14aba2
type * = tan orange
14aba2
.br
14aba2
range s0\-s0:c0.c1023 = black green
14aba2
.br
14aba2
range s1\-s1:c0.c1023 = white green
14aba2
.br
14aba2
range s3\-s3:c0.c1023 = black tan
14aba2
.br
14aba2
range s5\-s5:c0.c1023 = white blue
14aba2
.br
14aba2
range s7\-s7:c0.c1023 = black red
14aba2
.br
14aba2
range s9\-s9:c0.c1023 = black orange
14aba2
.br
14aba2
range s15:c0.c1023   = black yellow
14aba2
.RE
14aba2
14aba2
.sp
14aba2
Example 2 entries are:
14aba2
.RS
14aba2
color black  = #000000
14aba2
.br
14aba2
color green  = #008000
14aba2
.br
14aba2
color yellow = #ffff00
14aba2
.br
14aba2
color blue   = #0000ff
14aba2
.br
14aba2
color white  = #ffffff
14aba2
.br
14aba2
color red    = #ff0000
14aba2
.br
14aba2
color orange = #ffa500
14aba2
.br
14aba2
color tan    = #d2b48c
14aba2
.sp
14aba2
user unconfined_u = #ff0000 green
14aba2
.br
14aba2
role unconfined_r = red #ffffff
14aba2
.br
14aba2
type unconfined_t = red orange
14aba2
.br
14aba2
user user_u       = black green
14aba2
.br
14aba2
role user_r       = white black
14aba2
.br
14aba2
type user_t       = tan red
14aba2
.br
14aba2
user xguest_u     = black yellow
14aba2
.br
14aba2
role xguest_r     = black red
14aba2
.br
14aba2
type xguest_t     = black green
14aba2
.br
14aba2
user sysadm_u     = white black
14aba2
.br
14aba2
range s0:c0.c1023 = black white
14aba2
.br
14aba2
user *            = black white
14aba2
.br
14aba2
role *            = black white
14aba2
.br
14aba2
type *            = black white
14aba2
.RE
14aba2
.
14aba2
.SH "SEE ALSO"
14aba2
.BR mcstransd "(8), " selinux_raw_context_to_color "(3), " selinux_colors_path "(3)"