blob: 5dd8628351647a3106b71b251b052883dec91eb8 [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 {
74 name: "26.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070075 bottom_half: [":26.0.board.compat.map"],
76 top_half: "27.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070077}
78
79se_cil_compat_map {
80 name: "27.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070081 bottom_half: [":27.0.board.compat.map"],
82 top_half: "28.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070083}
Jae Shin1fa96342018-07-11 18:30:44 +090084
85se_cil_compat_map {
86 name: "28.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070087 bottom_half: [":28.0.board.compat.map"],
Tri Vo50aa0292019-06-01 17:04:13 -070088 top_half: "29.0.cil",
89}
90
91se_cil_compat_map {
92 name: "29.0.cil",
93 bottom_half: [":29.0.board.compat.map"],
94 // top_half: "30.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070095}
96
97se_cil_compat_map {
98 name: "26.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +080099 bottom_half: [":26.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -0700100 top_half: "27.0.ignore.cil",
101}
102
103se_cil_compat_map {
104 name: "27.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +0800105 bottom_half: [":27.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -0700106 top_half: "28.0.ignore.cil",
107}
108
109se_cil_compat_map {
110 name: "28.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +0800111 bottom_half: [":28.0.board.ignore.map"],
Tri Voe381deb2019-06-12 15:52:30 -0700112 top_half: "29.0.ignore.cil",
Jae Shin1fa96342018-07-11 18:30:44 +0900113}
Inseob Kimb554e592019-04-15 20:10:46 +0900114
Tri Vo50aa0292019-06-01 17:04:13 -0700115se_cil_compat_map {
116 name: "29.0.ignore.cil",
117 bottom_half: [":29.0.board.ignore.map"],
118 // top_half: "30.0.ignore.cil",
119}
120
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700121prebuilt_etc {
Tri Vo50aa0292019-06-01 17:04:13 -0700122 name: "26.0.compat.cil",
123 src: "private/compat/26.0/26.0.compat.cil",
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700124 sub_dir: "selinux/mapping",
125}
126
127prebuilt_etc {
128 name: "27.0.compat.cil",
129 src: "private/compat/27.0/27.0.compat.cil",
130 sub_dir: "selinux/mapping",
131}
132
133prebuilt_etc {
Tri Vo50aa0292019-06-01 17:04:13 -0700134 name: "28.0.compat.cil",
135 src: "private/compat/28.0/28.0.compat.cil",
136 sub_dir: "selinux/mapping",
137}
138
139prebuilt_etc {
140 name: "29.0.compat.cil",
141 src: "private/compat/29.0/29.0.compat.cil",
Jeff Vander Stoep564e2922019-05-02 13:48:44 -0700142 sub_dir: "selinux/mapping",
143}
144
Inseob Kimb554e592019-04-15 20:10:46 +0900145se_filegroup {
146 name: "file_contexts_files",
147 srcs: ["file_contexts"],
148}
149
150se_filegroup {
151 name: "file_contexts_asan_files",
152 srcs: ["file_contexts_asan"],
153}
154
155se_filegroup {
156 name: "file_contexts_overlayfs_files",
157 srcs: ["file_contexts_overlayfs"],
158}
159
160se_filegroup {
161 name: "hwservice_contexts_files",
162 srcs: ["hwservice_contexts"],
163}
164
165se_filegroup {
166 name: "property_contexts_files",
167 srcs: ["property_contexts"],
168}
169
170se_filegroup {
171 name: "service_contexts_files",
172 srcs: ["service_contexts"],
173}
174
175file_contexts {
176 name: "plat_file_contexts",
177 srcs: [":file_contexts_files"],
178 product_variables: {
179 address_sanitize: {
180 srcs: [":file_contexts_asan_files"],
181 },
182 debuggable: {
183 srcs: [":file_contexts_overlayfs_files"],
184 },
185 },
186
187 flatten_apex: {
188 srcs: ["apex/*-file_contexts"],
189 },
190
191 recovery_available: true,
192}
193
194file_contexts {
195 name: "vendor_file_contexts",
196 srcs: [":file_contexts_files"],
197 soc_specific: true,
198 recovery_available: true,
199}
200
201file_contexts {
Bowgo Tsai86a048d2019-09-09 22:04:06 +0800202 name: "system_ext_file_contexts",
203 srcs: [":file_contexts_files"],
204 system_ext_specific: true,
205 recovery_available: true,
206}
207
208file_contexts {
Inseob Kimb554e592019-04-15 20:10:46 +0900209 name: "product_file_contexts",
210 srcs: [":file_contexts_files"],
211 product_specific: true,
212 recovery_available: true,
213}
214
215file_contexts {
216 name: "odm_file_contexts",
217 srcs: [":file_contexts_files"],
218 device_specific: true,
219 recovery_available: true,
220}
221
222hwservice_contexts {
223 name: "plat_hwservice_contexts",
224 srcs: [":hwservice_contexts_files"],
225}
226
227hwservice_contexts {
228 name: "product_hwservice_contexts",
229 srcs: [":hwservice_contexts_files"],
230 product_specific: true,
231}
232
233hwservice_contexts {
234 name: "vendor_hwservice_contexts",
235 srcs: [":hwservice_contexts_files"],
236 reqd_mask: true,
237 soc_specific: true,
238}
239
240hwservice_contexts {
241 name: "odm_hwservice_contexts",
242 srcs: [":hwservice_contexts_files"],
243 device_specific: true,
244}
245
246property_contexts {
247 name: "plat_property_contexts",
248 srcs: [":property_contexts_files"],
249 recovery_available: true,
250}
251
252property_contexts {
253 name: "product_property_contexts",
254 srcs: [":property_contexts_files"],
255 product_specific: true,
256 recovery_available: true,
257}
258
259property_contexts {
260 name: "vendor_property_contexts",
261 srcs: [":property_contexts_files"],
262 reqd_mask: true,
263 soc_specific: true,
264 recovery_available: true,
265}
266
267property_contexts {
268 name: "odm_property_contexts",
269 srcs: [":property_contexts_files"],
270 device_specific: true,
271 recovery_available: true,
272}
273
274service_contexts {
275 name: "plat_service_contexts",
276 srcs: [":service_contexts_files"],
277}
278
279service_contexts {
280 name: "product_service_contexts",
281 srcs: [":service_contexts_files"],
282 product_specific: true,
283}
284
285service_contexts {
286 name: "vendor_service_contexts",
287 srcs: [":service_contexts_files"],
288 reqd_mask: true,
289 soc_specific: true,
290}