Debian Codegraph @

libselinux/man/man5/secolor.conf.5

raw
1 .TH "secolor.conf" "5" "08 April 2011" "SELinux API documentation"
2 .SH "NAME"
3 secolor.conf \- The SELinux color configuration file
4 .
5 .SH "DESCRIPTION"
6 This optional file controls the color to be associated to the context components associated to the
7 .I raw
8 context passed by
9 .BR selinux_raw_context_to_color "(3),"
10 when context related information is to be displayed in color by an SELinux-aware application.
11 .sp
12 .BR selinux_raw_context_to_color "(3)"
13 obtains this color information from the active policy
14 .B secolor.conf
15 file as returned by
16 .BR selinux_colors_path "(3)."
17 .
18 .SH "FILE FORMAT"
19 The file format is as follows:
20 .RS
21 .B color
22 .I color_name
23 .BI "= #"color_mask
24 .br
25 [...]
26 .sp
27 .I context_component string
28 .B =
29 .I fg_color_name bg_color_name
30 .br
31 [...]
32 .sp
33 .RE
34
35 Where:
36 .br
37 .B color
38 .RS
39 The color keyword. Each color entry is on a new line.
40 .RE
41 .I color_name
42 .RS
43 A single word name for the color (e.g. red).
44 .RE
45 .I color_mask
46 .RS
47 A color mask starting with a hash (#) that describes the hexadecimal RGB colors with black being #000000 and white being #ffffff.
48 .RE
49 .I context_component
50 .RS
51 The context component name that must be one of the following:
52 .br
53 .RS
54 user, role, type or range
55 .RE
56 Each
57 .IR context_component " " string " ..."
58 entry is on a new line.
59 .RE
60 .I string
61 .RS
62 This is the
63 .I context_component
64 string that will be matched with the
65 .I raw
66 context component passed by
67 .BR selinux_raw_context_to_color "(3)."
68 .br
69 A wildcard '*' may be used to match any undefined string for the user, role and type
70 .I context_component
71 entries only.
72 .RE
73
74 .I fg_color_name
75 .RS
76 The color_name string that will be used as the foreground color.
77 A
78 .I color_mask
79 may also be used.
80 .RE
81 .I bg_color_name
82 .RS
83 The color_name string that will be used as the background color.
84 A
85 .I color_mask
86 may also be used.
87 .RE
88 .
89 .SH "EXAMPLES"
90 Example 1 entries are:
91 .RS
92 color black = #000000
93 .br
94 color green = #008000
95 .br
96 color yellow = #ffff00
97 .br
98 color blue = #0000ff
99 .br
100 color white = #ffffff
101 .br
102 color red = #ff0000
103 .br
104 color orange = #ffa500
105 .br
106 color tan = #D2B48C
107 .sp
108 user * = black white
109 .br
110 role * = white black
111 .br
112 type * = tan orange
113 .br
114 range s0\-s0:c0.c1023 = black green
115 .br
116 range s1\-s1:c0.c1023 = white green
117 .br
118 range s3\-s3:c0.c1023 = black tan
119 .br
120 range s5\-s5:c0.c1023 = white blue
121 .br
122 range s7\-s7:c0.c1023 = black red
123 .br
124 range s9\-s9:c0.c1023 = black orange
125 .br
126 range s15:c0.c1023 = black yellow
127 .RE
128
129 .sp
130 Example 2 entries are:
131 .RS
132 color black = #000000
133 .br
134 color green = #008000
135 .br
136 color yellow = #ffff00
137 .br
138 color blue = #0000ff
139 .br
140 color white = #ffffff
141 .br
142 color red = #ff0000
143 .br
144 color orange = #ffa500
145 .br
146 color tan = #d2b48c
147 .sp
148 user unconfined_u = #ff0000 green
149 .br
150 role unconfined_r = red #ffffff
151 .br
152 type unconfined_t = red orange
153 .br
154 user user_u = black green
155 .br
156 role user_r = white black
157 .br
158 type user_t = tan red
159 .br
160 user xguest_u = black yellow
161 .br
162 role xguest_r = black red
163 .br
164 type xguest_t = black green
165 .br
166 user sysadm_u = white black
167 .br
168 range s0:c0.c1023 = black white
169 .br
170 user * = black white
171 .br
172 role * = black white
173 .br
174 type * = black white
175 .RE
176 .
177 .SH "SEE ALSO"
178 .BR selinux "(8), " selinux_raw_context_to_color "(3), " selinux_colors_path "(3)"