blob: bf91041e54d96eac639db33fea06c3caebacd14f [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 Vo438684b2018-09-29 17:47:10 -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 {
202 name: "product_file_contexts",
203 srcs: [":file_contexts_files"],
204 product_specific: true,
205 recovery_available: true,
206}
207
208file_contexts {
209 name: "odm_file_contexts",
210 srcs: [":file_contexts_files"],
211 device_specific: true,
212 recovery_available: true,
213}
214
215hwservice_contexts {
216 name: "plat_hwservice_contexts",
217 srcs: [":hwservice_contexts_files"],
218}
219
220hwservice_contexts {
221 name: "product_hwservice_contexts",
222 srcs: [":hwservice_contexts_files"],
223 product_specific: true,
224}
225
226hwservice_contexts {
227 name: "vendor_hwservice_contexts",
228 srcs: [":hwservice_contexts_files"],
229 reqd_mask: true,
230 soc_specific: true,
231}
232
233hwservice_contexts {
234 name: "odm_hwservice_contexts",
235 srcs: [":hwservice_contexts_files"],
236 device_specific: true,
237}
238
239property_contexts {
240 name: "plat_property_contexts",
241 srcs: [":property_contexts_files"],
242 recovery_available: true,
243}
244
245property_contexts {
246 name: "product_property_contexts",
247 srcs: [":property_contexts_files"],
248 product_specific: true,
249 recovery_available: true,
250}
251
252property_contexts {
253 name: "vendor_property_contexts",
254 srcs: [":property_contexts_files"],
255 reqd_mask: true,
256 soc_specific: true,
257 recovery_available: true,
258}
259
260property_contexts {
261 name: "odm_property_contexts",
262 srcs: [":property_contexts_files"],
263 device_specific: true,
264 recovery_available: true,
265}
266
267service_contexts {
268 name: "plat_service_contexts",
269 srcs: [":service_contexts_files"],
270}
271
272service_contexts {
273 name: "product_service_contexts",
274 srcs: [":service_contexts_files"],
275 product_specific: true,
276}
277
278service_contexts {
279 name: "vendor_service_contexts",
280 srcs: [":service_contexts_files"],
281 reqd_mask: true,
282 soc_specific: true,
283}