1secolor.conf(8) System Manager's Manual secolor.conf(8)
2
3
4
6 secolor.conf - The SELinux color configuration file
7
9 The /etc/selinux/{SELINUXTYPE}/secolor.conf configuation file controls
10 the color to be associated to the context components associated to the
11 raw context passed by selinux_raw_context_to_color(3), when context
12 related information is to be displayed in color by an SELinux-aware
13 application.
14
15 selinux_raw_context_to_color(3) obtains this color information from the
16 active policy secolor.conf file as returned by selinux_colors_path(3).
17
19 The file format is as follows:
20 color color_name = #color_mask
21 [...]
22
23 context_component string = fg_color_name bg_color_name
24 [...]
25
26
27 Where:
28 color
29 The color keyword. Each color entry is on a new line.
30 color_name
31 A single word name for the color (e.g. red).
32 color_mask
33 A color mask starting with a hash (#) that describes the hexa‐
34 decimal RGB colors with black being #000000 and white being
35 #ffffff.
36 context_component
37 The context component name that must be one of the following:
38 user, role, type or range
39 Each context_component string ... entry is on a new line.
40 string
41 This is the context_component string that will be matched with
42 the raw context component passed by selinux_raw_con‐
43 text_to_color(3).
44 A wildcard '*' may be used to match any undefined string for the
45 user, role and type context_component entries only.
46
47 fg_color_name
48 The color_name string that will be used as the foreground color.
49 A color_mask may also be used.
50 bg_color_name
51 The color_name string that will be used as the background color.
52 A color_mask may also be used.
53
55 Example 1 entries are:
56 color black = #000000
57 color green = #008000
58 color yellow = #ffff00
59 color blue = #0000ff
60 color white = #ffffff
61 color red = #ff0000
62 color orange = #ffa500
63 color tan = #D2B48C
64
65 user * = black white
66 role * = white black
67 type * = tan orange
68 range s0-s0:c0.c1023 = black green
69 range s1-s1:c0.c1023 = white green
70 range s3-s3:c0.c1023 = black tan
71 range s5-s5:c0.c1023 = white blue
72 range s7-s7:c0.c1023 = black red
73 range s9-s9:c0.c1023 = black orange
74 range s15:c0.c1023 = black yellow
75
76
77 Example 2 entries are:
78 color black = #000000
79 color green = #008000
80 color yellow = #ffff00
81 color blue = #0000ff
82 color white = #ffffff
83 color red = #ff0000
84 color orange = #ffa500
85 color tan = #d2b48c
86
87 user unconfined_u = #ff0000 green
88 role unconfined_r = red #ffffff
89 type unconfined_t = red orange
90 user user_u = black green
91 role user_r = white black
92 type user_t = tan red
93 user xguest_u = black yellow
94 role xguest_r = black red
95 type xguest_t = black green
96 user sysadm_u = white black
97 range s0:c0.c1023 = black white
98 user * = black white
99 role * = black white
100 type * = black white
101
103 mcstransd(8), selinux_raw_context_to_color(3), selinux_colors_path(3)
104
105
106
107SELinux API documentation 08 April 2011 secolor.conf(8)