blob: 2934cd98f830c9df861fa71a34bd6880d2cad06d [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 {
39 name: "26.0.board.ignore.map",
40 srcs: [
41 "compat/26.0/26.0.ignore.cil",
42 ],
43}
44
45se_filegroup {
46 name: "27.0.board.ignore.map",
47 srcs: [
48 "compat/27.0/27.0.ignore.cil",
49 ],
50}
51
52se_filegroup {
53 name: "28.0.board.ignore.map",
54 srcs: [
55 "compat/28.0/28.0.ignore.cil",
56 ],
57}
58
Tri Voa5cfd3e2018-03-22 11:35:02 -070059se_cil_compat_map {
60 name: "26.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070061 bottom_half: [":26.0.board.compat.map"],
62 top_half: "27.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070063}
64
65se_cil_compat_map {
66 name: "27.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070067 bottom_half: [":27.0.board.compat.map"],
68 top_half: "28.0.cil",
Tri Voa5cfd3e2018-03-22 11:35:02 -070069}
Jae Shin1fa96342018-07-11 18:30:44 +090070
71se_cil_compat_map {
72 name: "28.0.cil",
Tri Vo438684b2018-09-29 17:47:10 -070073 bottom_half: [":28.0.board.compat.map"],
74 // top_half: "29.0.cil",
75}
76
77se_cil_compat_map {
78 name: "26.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +080079 bottom_half: [":26.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -070080 top_half: "27.0.ignore.cil",
81}
82
83se_cil_compat_map {
84 name: "27.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +080085 bottom_half: [":27.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -070086 top_half: "28.0.ignore.cil",
87}
88
89se_cil_compat_map {
90 name: "28.0.ignore.cil",
Jinguang Donge0125692019-03-05 17:20:54 +080091 bottom_half: [":28.0.board.ignore.map"],
Tri Vo438684b2018-09-29 17:47:10 -070092 // top_half: "29.0.ignore.cil",
Jae Shin1fa96342018-07-11 18:30:44 +090093}
Inseob Kimb554e592019-04-15 20:10:46 +090094
Jeff Vander Stoep564e2922019-05-02 13:48:44 -070095prebuilt_etc {
96 name: "28.0.compat.cil",
97 src: "private/compat/28.0/28.0.compat.cil",
98 sub_dir: "selinux/mapping",
99}
100
101prebuilt_etc {
102 name: "27.0.compat.cil",
103 src: "private/compat/27.0/27.0.compat.cil",
104 sub_dir: "selinux/mapping",
105}
106
107prebuilt_etc {
108 name: "26.0.compat.cil",
109 src: "private/compat/26.0/26.0.compat.cil",
110 sub_dir: "selinux/mapping",
111}
112
Inseob Kimb554e592019-04-15 20:10:46 +0900113se_filegroup {
114 name: "file_contexts_files",
115 srcs: ["file_contexts"],
116}
117
118se_filegroup {
119 name: "file_contexts_asan_files",
120 srcs: ["file_contexts_asan"],
121}
122
123se_filegroup {
124 name: "file_contexts_overlayfs_files",
125 srcs: ["file_contexts_overlayfs"],
126}
127
128se_filegroup {
129 name: "hwservice_contexts_files",
130 srcs: ["hwservice_contexts"],
131}
132
133se_filegroup {
134 name: "property_contexts_files",
135 srcs: ["property_contexts"],
136}
137
138se_filegroup {
139 name: "service_contexts_files",
140 srcs: ["service_contexts"],
141}
142
143file_contexts {
144 name: "plat_file_contexts",
145 srcs: [":file_contexts_files"],
146 product_variables: {
147 address_sanitize: {
148 srcs: [":file_contexts_asan_files"],
149 },
150 debuggable: {
151 srcs: [":file_contexts_overlayfs_files"],
152 },
153 },
154
155 flatten_apex: {
156 srcs: ["apex/*-file_contexts"],
157 },
158
159 recovery_available: true,
160}
161
162file_contexts {
163 name: "vendor_file_contexts",
164 srcs: [":file_contexts_files"],
165 soc_specific: true,
166 recovery_available: true,
167}
168
169file_contexts {
170 name: "product_file_contexts",
171 srcs: [":file_contexts_files"],
172 product_specific: true,
173 recovery_available: true,
174}
175
176file_contexts {
177 name: "odm_file_contexts",
178 srcs: [":file_contexts_files"],
179 device_specific: true,
180 recovery_available: true,
181}
182
183hwservice_contexts {
184 name: "plat_hwservice_contexts",
185 srcs: [":hwservice_contexts_files"],
186}
187
188hwservice_contexts {
189 name: "product_hwservice_contexts",
190 srcs: [":hwservice_contexts_files"],
191 product_specific: true,
192}
193
194hwservice_contexts {
195 name: "vendor_hwservice_contexts",
196 srcs: [":hwservice_contexts_files"],
197 reqd_mask: true,
198 soc_specific: true,
199}
200
201hwservice_contexts {
202 name: "odm_hwservice_contexts",
203 srcs: [":hwservice_contexts_files"],
204 device_specific: true,
205}
206
207property_contexts {
208 name: "plat_property_contexts",
209 srcs: [":property_contexts_files"],
210 recovery_available: true,
211}
212
213property_contexts {
214 name: "product_property_contexts",
215 srcs: [":property_contexts_files"],
216 product_specific: true,
217 recovery_available: true,
218}
219
220property_contexts {
221 name: "vendor_property_contexts",
222 srcs: [":property_contexts_files"],
223 reqd_mask: true,
224 soc_specific: true,
225 recovery_available: true,
226}
227
228property_contexts {
229 name: "odm_property_contexts",
230 srcs: [":property_contexts_files"],
231 device_specific: true,
232 recovery_available: true,
233}
234
235service_contexts {
236 name: "plat_service_contexts",
237 srcs: [":service_contexts_files"],
238}
239
240service_contexts {
241 name: "product_service_contexts",
242 srcs: [":service_contexts_files"],
243 product_specific: true,
244}
245
246service_contexts {
247 name: "vendor_service_contexts",
248 srcs: [":service_contexts_files"],
249 reqd_mask: true,
250 soc_specific: true,
251}