Blame SOURCES/secolor.conf.8

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