blob: eeca38d6fe00690ccfe7b3b7b86b8a564a42998d [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
95se_filegroup {
96 name: "file_contexts_files",
97 srcs: ["file_contexts"],
98}
99
100se_filegroup {
101 name: "file_contexts_asan_files",
102 srcs: ["file_contexts_asan"],
103}
104
105se_filegroup {
106 name: "file_contexts_overlayfs_files",
107 srcs: ["file_contexts_overlayfs"],
108}
109
110se_filegroup {
111 name: "hwservice_contexts_files",
112 srcs: ["hwservice_contexts"],
113}
114
115se_filegroup {
116 name: "property_contexts_files",
117 srcs: ["property_contexts"],
118}
119
120se_filegroup {
121 name: "service_contexts_files",
122 srcs: ["service_contexts"],
123}
124
125file_contexts {
126 name: "plat_file_contexts",
127 srcs: [":file_contexts_files"],
128 product_variables: {
129 address_sanitize: {
130 srcs: [":file_contexts_asan_files"],
131 },
132 debuggable: {
133 srcs: [":file_contexts_overlayfs_files"],
134 },
135 },
136
137 flatten_apex: {
138 srcs: ["apex/*-file_contexts"],
139 },
140
141 recovery_available: true,
142}
143
144file_contexts {
145 name: "vendor_file_contexts",
146 srcs: [":file_contexts_files"],
147 soc_specific: true,
148 recovery_available: true,
149}
150
151file_contexts {
152 name: "product_file_contexts",
153 srcs: [":file_contexts_files"],
154 product_specific: true,
155 recovery_available: true,
156}
157
158file_contexts {
159 name: "odm_file_contexts",
160 srcs: [":file_contexts_files"],
161 device_specific: true,
162 recovery_available: true,
163}
164
165hwservice_contexts {
166 name: "plat_hwservice_contexts",
167 srcs: [":hwservice_contexts_files"],
168}
169
170hwservice_contexts {
171 name: "product_hwservice_contexts",
172 srcs: [":hwservice_contexts_files"],
173 product_specific: true,
174}
175
176hwservice_contexts {
177 name: "vendor_hwservice_contexts",
178 srcs: [":hwservice_contexts_files"],
179 reqd_mask: true,
180 soc_specific: true,
181}
182
183hwservice_contexts {
184 name: "odm_hwservice_contexts",
185 srcs: [":hwservice_contexts_files"],
186 device_specific: true,
187}
188
189property_contexts {
190 name: "plat_property_contexts",
191 srcs: [":property_contexts_files"],
192 recovery_available: true,
193}
194
195property_contexts {
196 name: "product_property_contexts",
197 srcs: [":property_contexts_files"],
198 product_specific: true,
199 recovery_available: true,
200}
201
202property_contexts {
203 name: "vendor_property_contexts",
204 srcs: [":property_contexts_files"],
205 reqd_mask: true,
206 soc_specific: true,
207 recovery_available: true,
208}
209
210property_contexts {
211 name: "odm_property_contexts",
212 srcs: [":property_contexts_files"],
213 device_specific: true,
214 recovery_available: true,
215}
216
217service_contexts {
218 name: "plat_service_contexts",
219 srcs: [":service_contexts_files"],
220}
221
222service_contexts {
223 name: "product_service_contexts",
224 srcs: [":service_contexts_files"],
225 product_specific: true,
226}
227
228service_contexts {
229 name: "vendor_service_contexts",
230 srcs: [":service_contexts_files"],
231 reqd_mask: true,
232 soc_specific: true,
233}