blob: 4973c13af8b326a2251e3e719d38cb52c3b53bcb [file] [log] [blame]
Tri Voa5cfd3e2018-03-22 11:35:02 -07001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Jeff Vander Stoepecd288f2019-02-15 12:18:15 -080015cc_defaults { name: "selinux_policy_version", cflags: ["-DSEPOLICY_VERSION=30"], }
16
Tri Vo84e247a2018-03-25 20:03:58 -070017se_filegroup {
18 name: "26.0.board.compat.map",
19 srcs: [
20 "compat/26.0/26.0.cil",
21 ],
22}
23
24se_filegroup {
25 name: "27.0.board.compat.map",
26 srcs: [
27 "compat/27.0/27.0.cil",
28 ],
29}
30
Jae Shin1fa96342018-07-11 18:30:44 +090031se_filegroup {
32 name: "28.0.board.compat.map",
33 srcs: [
34 "compat/28.0/28.0.cil",
35 ],
36}
37
Jinguang Donge0125692019-03-05 17:20:54 +080038se_filegroup {
Tri Vo50aa0292019-06-01 17:04:13 -070039 name: "29.0.board.compat.map",
40 srcs: [
41 "compat/29.0/29.0.cil",
42 ],
43}
44
45se_filegroup {
Jinguang Donge0125692019-03-05 17:20:54 +080046 name: "26.0.board.ignore.map",
47 srcs: [
48 "compat/26.0/26.0.ignore.cil",
49 ],
50}
51
52se_filegroup {
53 name: "27.0.board.ignore.map",
54 srcs: [
55 "compat/27.0/27.0.ignore.cil",
56 ],
57}
58
59se_filegroup {
60 name: "28.0.board.ignore.map",
61 srcs: [
62 "compat/28.0/28.0.ignore.cil",
63 ],
64}
65
Tri Vo50aa0292019-06-01 17:04:13 -070066se_filegroup {
67 name: "29.0.board.ignore.map",
68 srcs: [
69 "compat/29.0/29.0.ignore.cil",
70 ],
71}
72
Tri Voa5cfd3e2018-03-22 11:35:02 -070073se_cil_compat_map {
Tri Vo61178552019-10-10 16:29:40 -070074 name: "plat_26.0.cil",
75 stem: "26.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070076 bottom_half: [":26.0.board.compat.map"],
Tri Vo61178552019-10-10 16:29:40 -070077 top_half: "plat_27.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070078}
79
80se_cil_compat_map {
Tri Vo61178552019-10-10 16:29:40 -070081 name: "plat_27.0.cil",
82 stem: "27.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070083 bottom_half: [":27.0.board.compat.map"],
Tri Vo61178552019-10-10 16:29:40 -070084 top_half: "plat_28.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070085}
Jae Shin1fa96342018-07-11 18:30:44 +090086
87se_cil_compat_map {
Tri Vo61178552019-10-10 16:29:40 -070088 name: "plat_28.0.cil",
89 stem: "28.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070090 bottom_half: [":28.0.board.compat.map"],
Tri Vo61178552019-10-10 16:29:40 -070091 top_half: "plat_29.0.cil",
Tri Vo50aa0292019-06-01 17:04:13 -070092}
93
94se_cil_compat_map {
Tri Vo61178552019-10-10 16:29:40 -070095 name: "plat_29.0.cil",
96 stem: "29.0.cil",
Tri Vo50aa0292019-06-01 17:04:13 -070097 bottom_half: [":29.0.board.compat.map"],
Tri Vo61178552019-10-10 16:29:40 -070098 // top_half: "plat_30.0.cil",
99}
100
101se_cil_compat_map {
102 name: "system_ext_26.0.cil",
103 stem: "26.0.cil",
104 bottom_half: [":26.0.board.compat.map"],
105 top_half: "system_ext_27.0.cil",
106 system_ext_specific: true,
107}
108
109se_cil_compat_map {
110 name: "system_ext_27.0.cil",
111 stem: "27.0.cil",
112 bottom_half: [":27.0.board.compat.map"],
113 top_half: "system_ext_28.0.cil",
114 system_ext_specific: true,
115}
116
117se_cil_compat_map {
118 name: "system_ext_28.0.cil",
119 stem: "28.0.cil",
120 bottom_half: [":28.0.board.compat.map"],
121 top_half: "system_ext_29.0.cil",
122 system_ext_specific: true,
123}
124
125se_cil_compat_map {
126 name: "system_ext_29.0.cil",
127 stem: "29.0.cil",
128 bottom_half: [":29.0.board.compat.map"],
129 // top_half: "system_ext_30.0.cil",
130 system_ext_specific: true,
131}
132
133se_cil_compat_map {
134 name: "product_26.0.cil",
135 stem: "26.0.cil",
136 bottom_half: [":26.0.board.compat.map"],
137 top_half: "product_27.0.cil",
138 product_specific: true,
139}
140
141se_cil_compat_map {
142 name: "product_27.0.cil",
143 stem: "27.0.cil",
144 bottom_half: [":27.0.board.compat.map"],
145 top_half: "product_28.0.cil",
146 product_specific: true,
147}
148
149se_cil_compat_map {
150 name: "product_28.0.cil",
151 stem: "28.0.cil",
152 bottom_half: [":28.0.board.compat.map"],
153 top_half: "product_29.0.cil",
154 product_specific: true,
155}
156
157se_cil_compat_map {
158 name: "product_29.0.cil",
159 stem: "29.0.cil",
160 bottom_half: [":29.0.board.compat.map"],
161 // top_half: "product_30.0.cil",
162 product_specific: true,
Tri Vo438684b2018-09-29 17:47:10 -0700163}
164
165se_cil_compat_map {
166 name: "26.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +0800167 bottom_half: [":26.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -0700168 top_half: "27.0.ignore.cil",
169}
170
171se_cil_compat_map {
172 name: "27.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +0800173 bottom_half: [":27.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -0700174 top_half: "28.0.ignore.cil",
175}
176
177se_cil_compat_map {
178 name: "28.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +0800179 bottom_half: [":28.0.board.ignore.map"],
Tri Voe381deb2019-06-12 15:52:30 -0700180 top_half: "29.0.ignore.cil",
Jae Shin1fa96342018-07-11 18:30:44 +0900181}
Inseob Kimb554e592019-04-15 20:10:46 +0900182
Tri Vo50aa0292019-06-01 17:04:13 -0700183se_cil_compat_map {
184 name: "29.0.ignore.cil",
185 bottom_half: [":29.0.board.ignore.map"],
186 // top_half: "30.0.ignore.cil",
187}
188
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700189prebuilt_etc {
Tri Vo50aa0292019-06-01 17:04:13 -0700190 name: "26.0.compat.cil",
191 src: "private/compat/26.0/26.0.compat.cil",
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700192 sub_dir: "selinux/mapping",
193}
194
195prebuilt_etc {
196 name: "27.0.compat.cil",
197 src: "private/compat/27.0/27.0.compat.cil",
198 sub_dir: "selinux/mapping",
199}
200
201prebuilt_etc {
Tri Vo50aa0292019-06-01 17:04:13 -0700202 name: "28.0.compat.cil",
203 src: "private/compat/28.0/28.0.compat.cil",
204 sub_dir: "selinux/mapping",
205}
206
207prebuilt_etc {
208 name: "29.0.compat.cil",
209 src: "private/compat/29.0/29.0.compat.cil",
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700210 sub_dir: "selinux/mapping",
211}
212
Inseob Kimb554e592019-04-15 20:10:46 +0900213se_filegroup {
214 name: "file_contexts_files",
215 srcs: ["file_contexts"],
216}
217
218se_filegroup {
219 name: "file_contexts_asan_files",
220 srcs: ["file_contexts_asan"],
221}
222
223se_filegroup {
224 name: "file_contexts_overlayfs_files",
225 srcs: ["file_contexts_overlayfs"],
226}
227
228se_filegroup {
229 name: "hwservice_contexts_files",
230 srcs: ["hwservice_contexts"],
231}
232
233se_filegroup {
234 name: "property_contexts_files",
235 srcs: ["property_contexts"],
236}
237
238se_filegroup {
239 name: "service_contexts_files",
240 srcs: ["service_contexts"],
241}
242
243file_contexts {
244 name: "plat_file_contexts",
245 srcs: [":file_contexts_files"],
246 product_variables: {
247 address_sanitize: {
248 srcs: [":file_contexts_asan_files"],
249 },
250 debuggable: {
251 srcs: [":file_contexts_overlayfs_files"],
252 },
253 },
254
255 flatten_apex: {
256 srcs: ["apex/*-file_contexts"],
257 },
258
259 recovery_available: true,
260}
261
262file_contexts {
263 name: "vendor_file_contexts",
264 srcs: [":file_contexts_files"],
265 soc_specific: true,
266 recovery_available: true,
267}
268
269file_contexts {
Bowgo Tsai86a048d2019-09-09 22:04:06 +0800270 name: "system_ext_file_contexts",
271 srcs: [":file_contexts_files"],
272 system_ext_specific: true,
273 recovery_available: true,
274}
275
276file_contexts {
Inseob Kimb554e592019-04-15 20:10:46 +0900277 name: "product_file_contexts",
278 srcs: [":file_contexts_files"],
279 product_specific: true,
280 recovery_available: true,
281}
282
283file_contexts {
284 name: "odm_file_contexts",
285 srcs: [":file_contexts_files"],
286 device_specific: true,
287 recovery_available: true,
288}
289
290hwservice_contexts {
291 name: "plat_hwservice_contexts",
292 srcs: [":hwservice_contexts_files"],
293}
294
295hwservice_contexts {
Bowgo Tsai241d36e2019-09-09 22:05:10 +0800296 name: "system_ext_hwservice_contexts",
297 srcs: [":hwservice_contexts_files"],
298 system_ext_specific: true,
299}
300
301hwservice_contexts {
Inseob Kimb554e592019-04-15 20:10:46 +0900302 name: "product_hwservice_contexts",
303 srcs: [":hwservice_contexts_files"],
304 product_specific: true,
305}
306
307hwservice_contexts {
308 name: "vendor_hwservice_contexts",
309 srcs: [":hwservice_contexts_files"],
310 reqd_mask: true,
311 soc_specific: true,
312}
313
314hwservice_contexts {
315 name: "odm_hwservice_contexts",
316 srcs: [":hwservice_contexts_files"],
317 device_specific: true,
318}
319
320property_contexts {
321 name: "plat_property_contexts",
322 srcs: [":property_contexts_files"],
323 recovery_available: true,
324}
325
326property_contexts {
Bowgo Tsai1864cd02019-09-09 18:09:22 +0800327 name: "system_ext_property_contexts",
328 srcs: [":property_contexts_files"],
329 system_ext_specific: true,
330 recovery_available: true,
331}
332
333property_contexts {
Inseob Kimb554e592019-04-15 20:10:46 +0900334 name: "product_property_contexts",
335 srcs: [":property_contexts_files"],
336 product_specific: true,
337 recovery_available: true,
338}
339
340property_contexts {
341 name: "vendor_property_contexts",
342 srcs: [":property_contexts_files"],
343 reqd_mask: true,
344 soc_specific: true,
345 recovery_available: true,
346}
347
348property_contexts {
349 name: "odm_property_contexts",
350 srcs: [":property_contexts_files"],
351 device_specific: true,
352 recovery_available: true,
353}
354
355service_contexts {
356 name: "plat_service_contexts",
357 srcs: [":service_contexts_files"],
358}
359
360service_contexts {
Bowgo Tsai98231162019-09-09 22:05:29 +0800361 name: "system_ext_service_contexts",
362 srcs: [":service_contexts_files"],
363 system_ext_specific: true,
364}
365
366service_contexts {
Inseob Kimb554e592019-04-15 20:10:46 +0900367 name: "product_service_contexts",
368 srcs: [":service_contexts_files"],
369 product_specific: true,
370}
371
372service_contexts {
373 name: "vendor_service_contexts",
374 srcs: [":service_contexts_files"],
375 reqd_mask: true,
376 soc_specific: true,
377}