xref: /aosp_15_r20/system/sepolicy/contexts/Android.bp (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Worker// Copyright (C) 2021 The Android Open Source Project
2*e4a36f41SAndroid Build Coastguard Worker//
3*e4a36f41SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*e4a36f41SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*e4a36f41SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*e4a36f41SAndroid Build Coastguard Worker//
7*e4a36f41SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*e4a36f41SAndroid Build Coastguard Worker//
9*e4a36f41SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*e4a36f41SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*e4a36f41SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*e4a36f41SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*e4a36f41SAndroid Build Coastguard Worker// limitations under the License.
14*e4a36f41SAndroid Build Coastguard Worker
15*e4a36f41SAndroid Build Coastguard Worker// This file contains module definitions for various contexts files.
16*e4a36f41SAndroid Build Coastguard Worker
17*e4a36f41SAndroid Build Coastguard Workerpackage {
18*e4a36f41SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
19*e4a36f41SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
20*e4a36f41SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "system_sepolicy_license"
21*e4a36f41SAndroid Build Coastguard Worker    // to get the below license kinds:
22*e4a36f41SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
23*e4a36f41SAndroid Build Coastguard Worker    default_applicable_licenses: ["system_sepolicy_license"],
24*e4a36f41SAndroid Build Coastguard Worker}
25*e4a36f41SAndroid Build Coastguard Worker
26*e4a36f41SAndroid Build Coastguard Workerse_build_files {
27*e4a36f41SAndroid Build Coastguard Worker    name: "file_contexts_files",
28*e4a36f41SAndroid Build Coastguard Worker    srcs: ["file_contexts"],
29*e4a36f41SAndroid Build Coastguard Worker}
30*e4a36f41SAndroid Build Coastguard Worker
31*e4a36f41SAndroid Build Coastguard Workerse_build_files {
32*e4a36f41SAndroid Build Coastguard Worker    name: "file_contexts_asan_files",
33*e4a36f41SAndroid Build Coastguard Worker    srcs: ["file_contexts_asan"],
34*e4a36f41SAndroid Build Coastguard Worker}
35*e4a36f41SAndroid Build Coastguard Worker
36*e4a36f41SAndroid Build Coastguard Workerse_build_files {
37*e4a36f41SAndroid Build Coastguard Worker    name: "file_contexts_overlayfs_files",
38*e4a36f41SAndroid Build Coastguard Worker    srcs: ["file_contexts_overlayfs"],
39*e4a36f41SAndroid Build Coastguard Worker}
40*e4a36f41SAndroid Build Coastguard Worker
41*e4a36f41SAndroid Build Coastguard Workerse_build_files {
42*e4a36f41SAndroid Build Coastguard Worker    name: "hwservice_contexts_files",
43*e4a36f41SAndroid Build Coastguard Worker    srcs: ["hwservice_contexts"],
44*e4a36f41SAndroid Build Coastguard Worker}
45*e4a36f41SAndroid Build Coastguard Worker
46*e4a36f41SAndroid Build Coastguard Workerse_build_files {
47*e4a36f41SAndroid Build Coastguard Worker    name: "property_contexts_files",
48*e4a36f41SAndroid Build Coastguard Worker    srcs: ["property_contexts"],
49*e4a36f41SAndroid Build Coastguard Worker}
50*e4a36f41SAndroid Build Coastguard Worker
51*e4a36f41SAndroid Build Coastguard Workerse_build_files {
52*e4a36f41SAndroid Build Coastguard Worker    name: "service_contexts_files",
53*e4a36f41SAndroid Build Coastguard Worker    srcs: ["service_contexts"],
54*e4a36f41SAndroid Build Coastguard Worker}
55*e4a36f41SAndroid Build Coastguard Worker
56*e4a36f41SAndroid Build Coastguard Workerse_build_files {
57*e4a36f41SAndroid Build Coastguard Worker    name: "keystore2_key_contexts_files",
58*e4a36f41SAndroid Build Coastguard Worker    srcs: ["keystore2_key_contexts"],
59*e4a36f41SAndroid Build Coastguard Worker}
60*e4a36f41SAndroid Build Coastguard Worker
61*e4a36f41SAndroid Build Coastguard Workerse_build_files {
62*e4a36f41SAndroid Build Coastguard Worker    name: "seapp_contexts_files",
63*e4a36f41SAndroid Build Coastguard Worker    srcs: ["seapp_contexts"],
64*e4a36f41SAndroid Build Coastguard Worker}
65*e4a36f41SAndroid Build Coastguard Worker
66*e4a36f41SAndroid Build Coastguard Workerse_build_files {
67*e4a36f41SAndroid Build Coastguard Worker    name: "vndservice_contexts_files",
68*e4a36f41SAndroid Build Coastguard Worker    srcs: ["vndservice_contexts"],
69*e4a36f41SAndroid Build Coastguard Worker}
70*e4a36f41SAndroid Build Coastguard Worker
71*e4a36f41SAndroid Build Coastguard Workerse_build_files {
72*e4a36f41SAndroid Build Coastguard Worker    name: "tee_service_contexts_files",
73*e4a36f41SAndroid Build Coastguard Worker    srcs: ["tee_service_contexts"],
74*e4a36f41SAndroid Build Coastguard Worker}
75*e4a36f41SAndroid Build Coastguard Worker
76*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
77*e4a36f41SAndroid Build Coastguard Worker    name: "plat_file_contexts",
78*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
79*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.plat_private}"],
80*e4a36f41SAndroid Build Coastguard Worker    product_variables: {
81*e4a36f41SAndroid Build Coastguard Worker        address_sanitize: {
82*e4a36f41SAndroid Build Coastguard Worker            srcs: [":file_contexts_asan_files{.plat_private}"],
83*e4a36f41SAndroid Build Coastguard Worker        },
84*e4a36f41SAndroid Build Coastguard Worker        debuggable: {
85*e4a36f41SAndroid Build Coastguard Worker            srcs: [":file_contexts_overlayfs_files{.plat_private}"],
86*e4a36f41SAndroid Build Coastguard Worker        },
87*e4a36f41SAndroid Build Coastguard Worker    },
88*e4a36f41SAndroid Build Coastguard Worker}
89*e4a36f41SAndroid Build Coastguard Worker
90*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
91*e4a36f41SAndroid Build Coastguard Worker    name: "plat_file_contexts.recovery",
92*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
93*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.plat_private}"],
94*e4a36f41SAndroid Build Coastguard Worker    stem: "plat_file_contexts",
95*e4a36f41SAndroid Build Coastguard Worker    product_variables: {
96*e4a36f41SAndroid Build Coastguard Worker        address_sanitize: {
97*e4a36f41SAndroid Build Coastguard Worker            srcs: [":file_contexts_asan_files{.plat_private}"],
98*e4a36f41SAndroid Build Coastguard Worker        },
99*e4a36f41SAndroid Build Coastguard Worker        debuggable: {
100*e4a36f41SAndroid Build Coastguard Worker            srcs: [":file_contexts_overlayfs_files{.plat_private}"],
101*e4a36f41SAndroid Build Coastguard Worker        },
102*e4a36f41SAndroid Build Coastguard Worker    },
103*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
104*e4a36f41SAndroid Build Coastguard Worker}
105*e4a36f41SAndroid Build Coastguard Worker
106*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
107*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_file_contexts",
108*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
109*e4a36f41SAndroid Build Coastguard Worker    srcs: [
110*e4a36f41SAndroid Build Coastguard Worker        ":file_contexts_files{.plat_vendor}",
111*e4a36f41SAndroid Build Coastguard Worker        ":file_contexts_files{.vendor}",
112*e4a36f41SAndroid Build Coastguard Worker    ],
113*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
114*e4a36f41SAndroid Build Coastguard Worker    fc_sort: true,
115*e4a36f41SAndroid Build Coastguard Worker}
116*e4a36f41SAndroid Build Coastguard Worker
117*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
118*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_file_contexts.recovery",
119*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
120*e4a36f41SAndroid Build Coastguard Worker    srcs: [
121*e4a36f41SAndroid Build Coastguard Worker        ":file_contexts_files{.plat_vendor}",
122*e4a36f41SAndroid Build Coastguard Worker        ":file_contexts_files{.vendor}",
123*e4a36f41SAndroid Build Coastguard Worker    ],
124*e4a36f41SAndroid Build Coastguard Worker    stem: "vendor_file_contexts",
125*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
126*e4a36f41SAndroid Build Coastguard Worker    fc_sort: true,
127*e4a36f41SAndroid Build Coastguard Worker}
128*e4a36f41SAndroid Build Coastguard Worker
129*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
130*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_file_contexts",
131*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
132*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.system_ext_private}"],
133*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
134*e4a36f41SAndroid Build Coastguard Worker}
135*e4a36f41SAndroid Build Coastguard Worker
136*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
137*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_file_contexts.recovery",
138*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
139*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.system_ext_private}"],
140*e4a36f41SAndroid Build Coastguard Worker    stem: "system_ext_file_contexts",
141*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
142*e4a36f41SAndroid Build Coastguard Worker}
143*e4a36f41SAndroid Build Coastguard Worker
144*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
145*e4a36f41SAndroid Build Coastguard Worker    name: "product_file_contexts",
146*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
147*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.product_private}"],
148*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
149*e4a36f41SAndroid Build Coastguard Worker}
150*e4a36f41SAndroid Build Coastguard Worker
151*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
152*e4a36f41SAndroid Build Coastguard Worker    name: "product_file_contexts.recovery",
153*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
154*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.product_private}"],
155*e4a36f41SAndroid Build Coastguard Worker    stem: "product_file_contexts",
156*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
157*e4a36f41SAndroid Build Coastguard Worker}
158*e4a36f41SAndroid Build Coastguard Worker
159*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
160*e4a36f41SAndroid Build Coastguard Worker    name: "odm_file_contexts",
161*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
162*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.odm}"],
163*e4a36f41SAndroid Build Coastguard Worker    device_specific: true,
164*e4a36f41SAndroid Build Coastguard Worker    fc_sort: true,
165*e4a36f41SAndroid Build Coastguard Worker}
166*e4a36f41SAndroid Build Coastguard Worker
167*e4a36f41SAndroid Build Coastguard Workerfile_contexts {
168*e4a36f41SAndroid Build Coastguard Worker    name: "odm_file_contexts.recovery",
169*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
170*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.odm}"],
171*e4a36f41SAndroid Build Coastguard Worker    stem: "odm_file_contexts",
172*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
173*e4a36f41SAndroid Build Coastguard Worker    fc_sort: true,
174*e4a36f41SAndroid Build Coastguard Worker}
175*e4a36f41SAndroid Build Coastguard Worker
176*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
177*e4a36f41SAndroid Build Coastguard Worker    name: "plat_hwservice_contexts",
178*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
179*e4a36f41SAndroid Build Coastguard Worker    srcs: [":hwservice_contexts_files{.plat_private}"],
180*e4a36f41SAndroid Build Coastguard Worker}
181*e4a36f41SAndroid Build Coastguard Worker
182*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
183*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_hwservice_contexts",
184*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
185*e4a36f41SAndroid Build Coastguard Worker    srcs: [":hwservice_contexts_files{.system_ext_private}"],
186*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
187*e4a36f41SAndroid Build Coastguard Worker}
188*e4a36f41SAndroid Build Coastguard Worker
189*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
190*e4a36f41SAndroid Build Coastguard Worker    name: "product_hwservice_contexts",
191*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
192*e4a36f41SAndroid Build Coastguard Worker    srcs: [":hwservice_contexts_files{.product_private}"],
193*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
194*e4a36f41SAndroid Build Coastguard Worker}
195*e4a36f41SAndroid Build Coastguard Worker
196*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
197*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_hwservice_contexts",
198*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
199*e4a36f41SAndroid Build Coastguard Worker    srcs: [
200*e4a36f41SAndroid Build Coastguard Worker        ":hwservice_contexts_files{.plat_vendor}",
201*e4a36f41SAndroid Build Coastguard Worker        ":hwservice_contexts_files{.vendor}",
202*e4a36f41SAndroid Build Coastguard Worker        ":hwservice_contexts_files{.reqd_mask}",
203*e4a36f41SAndroid Build Coastguard Worker    ],
204*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
205*e4a36f41SAndroid Build Coastguard Worker}
206*e4a36f41SAndroid Build Coastguard Worker
207*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
208*e4a36f41SAndroid Build Coastguard Worker    name: "odm_hwservice_contexts",
209*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
210*e4a36f41SAndroid Build Coastguard Worker    srcs: [":hwservice_contexts_files{.odm}"],
211*e4a36f41SAndroid Build Coastguard Worker    device_specific: true,
212*e4a36f41SAndroid Build Coastguard Worker}
213*e4a36f41SAndroid Build Coastguard Worker
214*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts {
215*e4a36f41SAndroid Build Coastguard Worker    name: "merged_hwservice_contexts",
216*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
217*e4a36f41SAndroid Build Coastguard Worker    srcs: [
218*e4a36f41SAndroid Build Coastguard Worker        ":plat_hwservice_contexts",
219*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_hwservice_contexts",
220*e4a36f41SAndroid Build Coastguard Worker        ":product_hwservice_contexts",
221*e4a36f41SAndroid Build Coastguard Worker        ":vendor_hwservice_contexts",
222*e4a36f41SAndroid Build Coastguard Worker        ":odm_hwservice_contexts",
223*e4a36f41SAndroid Build Coastguard Worker    ],
224*e4a36f41SAndroid Build Coastguard Worker}
225*e4a36f41SAndroid Build Coastguard Worker
226*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
227*e4a36f41SAndroid Build Coastguard Worker    name: "plat_property_contexts",
228*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
229*e4a36f41SAndroid Build Coastguard Worker    srcs: [":property_contexts_files{.plat_private}"],
230*e4a36f41SAndroid Build Coastguard Worker}
231*e4a36f41SAndroid Build Coastguard Worker
232*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
233*e4a36f41SAndroid Build Coastguard Worker    name: "plat_property_contexts.recovery",
234*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
235*e4a36f41SAndroid Build Coastguard Worker    srcs: [":property_contexts_files{.plat_private}"],
236*e4a36f41SAndroid Build Coastguard Worker    stem: "plat_property_contexts",
237*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
238*e4a36f41SAndroid Build Coastguard Worker}
239*e4a36f41SAndroid Build Coastguard Worker
240*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
241*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_property_contexts",
242*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
243*e4a36f41SAndroid Build Coastguard Worker    srcs: [":property_contexts_files{.system_ext_private}"],
244*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
245*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
246*e4a36f41SAndroid Build Coastguard Worker}
247*e4a36f41SAndroid Build Coastguard Worker
248*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
249*e4a36f41SAndroid Build Coastguard Worker    name: "product_property_contexts",
250*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
251*e4a36f41SAndroid Build Coastguard Worker    srcs: [":property_contexts_files{.product_private}"],
252*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
253*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
254*e4a36f41SAndroid Build Coastguard Worker}
255*e4a36f41SAndroid Build Coastguard Worker
256*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
257*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_property_contexts",
258*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
259*e4a36f41SAndroid Build Coastguard Worker    srcs: [
260*e4a36f41SAndroid Build Coastguard Worker        ":property_contexts_files{.plat_vendor}",
261*e4a36f41SAndroid Build Coastguard Worker        ":property_contexts_files{.vendor}",
262*e4a36f41SAndroid Build Coastguard Worker        ":property_contexts_files{.reqd_mask}",
263*e4a36f41SAndroid Build Coastguard Worker    ],
264*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
265*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
266*e4a36f41SAndroid Build Coastguard Worker}
267*e4a36f41SAndroid Build Coastguard Worker
268*e4a36f41SAndroid Build Coastguard Workerproperty_contexts {
269*e4a36f41SAndroid Build Coastguard Worker    name: "odm_property_contexts",
270*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
271*e4a36f41SAndroid Build Coastguard Worker    srcs: [":property_contexts_files{.odm}"],
272*e4a36f41SAndroid Build Coastguard Worker    device_specific: true,
273*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
274*e4a36f41SAndroid Build Coastguard Worker}
275*e4a36f41SAndroid Build Coastguard Worker
276*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
277*e4a36f41SAndroid Build Coastguard Worker    name: "plat_service_contexts",
278*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
279*e4a36f41SAndroid Build Coastguard Worker    srcs: [":service_contexts_files{.plat_private}"],
280*e4a36f41SAndroid Build Coastguard Worker}
281*e4a36f41SAndroid Build Coastguard Worker
282*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
283*e4a36f41SAndroid Build Coastguard Worker    name: "plat_service_contexts.recovery",
284*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
285*e4a36f41SAndroid Build Coastguard Worker    srcs: [":service_contexts_files{.plat_private}"],
286*e4a36f41SAndroid Build Coastguard Worker    stem: "plat_service_contexts",
287*e4a36f41SAndroid Build Coastguard Worker    recovery: true,
288*e4a36f41SAndroid Build Coastguard Worker}
289*e4a36f41SAndroid Build Coastguard Worker
290*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
291*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_service_contexts",
292*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
293*e4a36f41SAndroid Build Coastguard Worker    srcs: [":service_contexts_files{.system_ext_private}"],
294*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
295*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
296*e4a36f41SAndroid Build Coastguard Worker}
297*e4a36f41SAndroid Build Coastguard Worker
298*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
299*e4a36f41SAndroid Build Coastguard Worker    name: "product_service_contexts",
300*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
301*e4a36f41SAndroid Build Coastguard Worker    srcs: [":service_contexts_files{.product_private}"],
302*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
303*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
304*e4a36f41SAndroid Build Coastguard Worker}
305*e4a36f41SAndroid Build Coastguard Worker
306*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
307*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_service_contexts",
308*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
309*e4a36f41SAndroid Build Coastguard Worker    srcs: [
310*e4a36f41SAndroid Build Coastguard Worker        ":service_contexts_files{.plat_vendor}",
311*e4a36f41SAndroid Build Coastguard Worker        ":service_contexts_files{.vendor}",
312*e4a36f41SAndroid Build Coastguard Worker        ":service_contexts_files{.reqd_mask}",
313*e4a36f41SAndroid Build Coastguard Worker    ],
314*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
315*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
316*e4a36f41SAndroid Build Coastguard Worker}
317*e4a36f41SAndroid Build Coastguard Worker
318*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
319*e4a36f41SAndroid Build Coastguard Worker    name: "odm_service_contexts",
320*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
321*e4a36f41SAndroid Build Coastguard Worker    srcs: [
322*e4a36f41SAndroid Build Coastguard Worker        ":service_contexts_files{.odm}",
323*e4a36f41SAndroid Build Coastguard Worker    ],
324*e4a36f41SAndroid Build Coastguard Worker    device_specific: true,
325*e4a36f41SAndroid Build Coastguard Worker    recovery_available: true,
326*e4a36f41SAndroid Build Coastguard Worker}
327*e4a36f41SAndroid Build Coastguard Worker
328*e4a36f41SAndroid Build Coastguard Workerservice_contexts {
329*e4a36f41SAndroid Build Coastguard Worker    name: "merged_service_contexts",
330*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
331*e4a36f41SAndroid Build Coastguard Worker    srcs: [
332*e4a36f41SAndroid Build Coastguard Worker        ":plat_service_contexts",
333*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_service_contexts",
334*e4a36f41SAndroid Build Coastguard Worker        ":product_service_contexts",
335*e4a36f41SAndroid Build Coastguard Worker        ":vendor_service_contexts",
336*e4a36f41SAndroid Build Coastguard Worker        ":odm_service_contexts",
337*e4a36f41SAndroid Build Coastguard Worker    ],
338*e4a36f41SAndroid Build Coastguard Worker}
339*e4a36f41SAndroid Build Coastguard Worker
340*e4a36f41SAndroid Build Coastguard Workerkeystore2_key_contexts {
341*e4a36f41SAndroid Build Coastguard Worker    name: "plat_keystore2_key_contexts",
342*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
343*e4a36f41SAndroid Build Coastguard Worker    srcs: [":keystore2_key_contexts_files{.plat_private}"],
344*e4a36f41SAndroid Build Coastguard Worker}
345*e4a36f41SAndroid Build Coastguard Worker
346*e4a36f41SAndroid Build Coastguard Workerkeystore2_key_contexts {
347*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_keystore2_key_contexts",
348*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
349*e4a36f41SAndroid Build Coastguard Worker    srcs: [":keystore2_key_contexts_files{.system_ext_private}"],
350*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
351*e4a36f41SAndroid Build Coastguard Worker}
352*e4a36f41SAndroid Build Coastguard Worker
353*e4a36f41SAndroid Build Coastguard Workerkeystore2_key_contexts {
354*e4a36f41SAndroid Build Coastguard Worker    name: "product_keystore2_key_contexts",
355*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
356*e4a36f41SAndroid Build Coastguard Worker    srcs: [":keystore2_key_contexts_files{.product_private}"],
357*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
358*e4a36f41SAndroid Build Coastguard Worker}
359*e4a36f41SAndroid Build Coastguard Worker
360*e4a36f41SAndroid Build Coastguard Workerkeystore2_key_contexts {
361*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_keystore2_key_contexts",
362*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
363*e4a36f41SAndroid Build Coastguard Worker    srcs: [
364*e4a36f41SAndroid Build Coastguard Worker        ":keystore2_key_contexts_files{.plat_vendor}",
365*e4a36f41SAndroid Build Coastguard Worker        ":keystore2_key_contexts_files{.vendor}",
366*e4a36f41SAndroid Build Coastguard Worker        ":keystore2_key_contexts_files{.reqd_mask}",
367*e4a36f41SAndroid Build Coastguard Worker    ],
368*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
369*e4a36f41SAndroid Build Coastguard Worker}
370*e4a36f41SAndroid Build Coastguard Worker
371*e4a36f41SAndroid Build Coastguard Workerseapp_contexts {
372*e4a36f41SAndroid Build Coastguard Worker    name: "plat_seapp_contexts",
373*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
374*e4a36f41SAndroid Build Coastguard Worker    srcs: [":seapp_contexts_files{.plat_private}"],
375*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
376*e4a36f41SAndroid Build Coastguard Worker}
377*e4a36f41SAndroid Build Coastguard Worker
378*e4a36f41SAndroid Build Coastguard Workerseapp_contexts {
379*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_seapp_contexts",
380*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
381*e4a36f41SAndroid Build Coastguard Worker    srcs: [":seapp_contexts_files{.system_ext_private}"],
382*e4a36f41SAndroid Build Coastguard Worker    neverallow_files: [":seapp_contexts_files{.plat_private}"],
383*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
384*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
385*e4a36f41SAndroid Build Coastguard Worker}
386*e4a36f41SAndroid Build Coastguard Worker
387*e4a36f41SAndroid Build Coastguard Workerseapp_contexts {
388*e4a36f41SAndroid Build Coastguard Worker    name: "product_seapp_contexts",
389*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
390*e4a36f41SAndroid Build Coastguard Worker    srcs: [":seapp_contexts_files{.product_private}"],
391*e4a36f41SAndroid Build Coastguard Worker    neverallow_files: [
392*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.plat_private}",
393*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.system_ext_private}",
394*e4a36f41SAndroid Build Coastguard Worker    ],
395*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
396*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
397*e4a36f41SAndroid Build Coastguard Worker}
398*e4a36f41SAndroid Build Coastguard Worker
399*e4a36f41SAndroid Build Coastguard Workerseapp_contexts {
400*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_seapp_contexts",
401*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
402*e4a36f41SAndroid Build Coastguard Worker    srcs: [
403*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.plat_vendor}",
404*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.vendor}",
405*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.reqd_mask}",
406*e4a36f41SAndroid Build Coastguard Worker    ],
407*e4a36f41SAndroid Build Coastguard Worker    neverallow_files: [
408*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.plat_private}",
409*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.system_ext_private}",
410*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.product_private}",
411*e4a36f41SAndroid Build Coastguard Worker    ],
412*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
413*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
414*e4a36f41SAndroid Build Coastguard Worker}
415*e4a36f41SAndroid Build Coastguard Worker
416*e4a36f41SAndroid Build Coastguard Workerseapp_contexts {
417*e4a36f41SAndroid Build Coastguard Worker    name: "odm_seapp_contexts",
418*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
419*e4a36f41SAndroid Build Coastguard Worker    srcs: [
420*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.odm}",
421*e4a36f41SAndroid Build Coastguard Worker    ],
422*e4a36f41SAndroid Build Coastguard Worker    neverallow_files: [
423*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.plat_private}",
424*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.system_ext_private}",
425*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.product_private}",
426*e4a36f41SAndroid Build Coastguard Worker    ],
427*e4a36f41SAndroid Build Coastguard Worker    device_specific: true,
428*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
429*e4a36f41SAndroid Build Coastguard Worker}
430*e4a36f41SAndroid Build Coastguard Worker
431*e4a36f41SAndroid Build Coastguard Workervndservice_contexts {
432*e4a36f41SAndroid Build Coastguard Worker    name: "vndservice_contexts",
433*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
434*e4a36f41SAndroid Build Coastguard Worker    srcs: [
435*e4a36f41SAndroid Build Coastguard Worker        ":vndservice_contexts_files{.plat_vendor}",
436*e4a36f41SAndroid Build Coastguard Worker        ":vndservice_contexts_files{.vendor}",
437*e4a36f41SAndroid Build Coastguard Worker        ":vndservice_contexts_files{.reqd_mask}",
438*e4a36f41SAndroid Build Coastguard Worker    ],
439*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
440*e4a36f41SAndroid Build Coastguard Worker}
441*e4a36f41SAndroid Build Coastguard Worker
442*e4a36f41SAndroid Build Coastguard Worker// for CTS
443*e4a36f41SAndroid Build Coastguard Workergenrule {
444*e4a36f41SAndroid Build Coastguard Worker    name: "plat_seapp_neverallows",
445*e4a36f41SAndroid Build Coastguard Worker    srcs: [
446*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.plat_private}",
447*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.system_ext_private}",
448*e4a36f41SAndroid Build Coastguard Worker        ":seapp_contexts_files{.product_private}",
449*e4a36f41SAndroid Build Coastguard Worker    ],
450*e4a36f41SAndroid Build Coastguard Worker    out: ["plat_seapp_neverallows"],
451*e4a36f41SAndroid Build Coastguard Worker    cmd: "grep -ihe '^neverallow' $(in) > $(out) || true",
452*e4a36f41SAndroid Build Coastguard Worker}
453*e4a36f41SAndroid Build Coastguard Worker
454*e4a36f41SAndroid Build Coastguard Worker//////////////////////////////////
455*e4a36f41SAndroid Build Coastguard Worker// Run host-side test with contexts files and the sepolicy file
456*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
457*e4a36f41SAndroid Build Coastguard Worker    name: "plat_file_contexts_test",
458*e4a36f41SAndroid Build Coastguard Worker    srcs: [":plat_file_contexts"],
459*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
460*e4a36f41SAndroid Build Coastguard Worker}
461*e4a36f41SAndroid Build Coastguard Worker
462*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
463*e4a36f41SAndroid Build Coastguard Worker    name: "plat_file_contexts_data_test",
464*e4a36f41SAndroid Build Coastguard Worker    srcs: [":file_contexts_files{.plat_private}"],
465*e4a36f41SAndroid Build Coastguard Worker    test_data: "plat_file_contexts_test",
466*e4a36f41SAndroid Build Coastguard Worker}
467*e4a36f41SAndroid Build Coastguard Worker
468*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
469*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_file_contexts_test",
470*e4a36f41SAndroid Build Coastguard Worker    srcs: [":system_ext_file_contexts"],
471*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
472*e4a36f41SAndroid Build Coastguard Worker}
473*e4a36f41SAndroid Build Coastguard Worker
474*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
475*e4a36f41SAndroid Build Coastguard Worker    name: "product_file_contexts_test",
476*e4a36f41SAndroid Build Coastguard Worker    srcs: [":product_file_contexts"],
477*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
478*e4a36f41SAndroid Build Coastguard Worker}
479*e4a36f41SAndroid Build Coastguard Worker
480*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
481*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_file_contexts_test",
482*e4a36f41SAndroid Build Coastguard Worker    srcs: [":vendor_file_contexts"],
483*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
484*e4a36f41SAndroid Build Coastguard Worker}
485*e4a36f41SAndroid Build Coastguard Worker
486*e4a36f41SAndroid Build Coastguard Workerfile_contexts_test {
487*e4a36f41SAndroid Build Coastguard Worker    name: "odm_file_contexts_test",
488*e4a36f41SAndroid Build Coastguard Worker    srcs: [":odm_file_contexts"],
489*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
490*e4a36f41SAndroid Build Coastguard Worker}
491*e4a36f41SAndroid Build Coastguard Worker
492*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
493*e4a36f41SAndroid Build Coastguard Worker    name: "plat_hwservice_contexts_test",
494*e4a36f41SAndroid Build Coastguard Worker    srcs: [":plat_hwservice_contexts"],
495*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
496*e4a36f41SAndroid Build Coastguard Worker}
497*e4a36f41SAndroid Build Coastguard Worker
498*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
499*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_hwservice_contexts_test",
500*e4a36f41SAndroid Build Coastguard Worker    srcs: [":system_ext_hwservice_contexts"],
501*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
502*e4a36f41SAndroid Build Coastguard Worker}
503*e4a36f41SAndroid Build Coastguard Worker
504*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
505*e4a36f41SAndroid Build Coastguard Worker    name: "product_hwservice_contexts_test",
506*e4a36f41SAndroid Build Coastguard Worker    srcs: [":product_hwservice_contexts"],
507*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
508*e4a36f41SAndroid Build Coastguard Worker}
509*e4a36f41SAndroid Build Coastguard Worker
510*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
511*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_hwservice_contexts_test",
512*e4a36f41SAndroid Build Coastguard Worker    srcs: [":vendor_hwservice_contexts"],
513*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
514*e4a36f41SAndroid Build Coastguard Worker}
515*e4a36f41SAndroid Build Coastguard Worker
516*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
517*e4a36f41SAndroid Build Coastguard Worker    name: "odm_hwservice_contexts_test",
518*e4a36f41SAndroid Build Coastguard Worker    srcs: [":odm_hwservice_contexts"],
519*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
520*e4a36f41SAndroid Build Coastguard Worker}
521*e4a36f41SAndroid Build Coastguard Worker
522*e4a36f41SAndroid Build Coastguard Workerhwservice_contexts_test {
523*e4a36f41SAndroid Build Coastguard Worker    name: "merged_hwservice_contexts_test",
524*e4a36f41SAndroid Build Coastguard Worker    srcs: [":merged_hwservice_contexts"],
525*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
526*e4a36f41SAndroid Build Coastguard Worker}
527*e4a36f41SAndroid Build Coastguard Worker
528*e4a36f41SAndroid Build Coastguard Workerproperty_contexts_test {
529*e4a36f41SAndroid Build Coastguard Worker    name: "plat_property_contexts_test",
530*e4a36f41SAndroid Build Coastguard Worker    srcs: [":plat_property_contexts"],
531*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
532*e4a36f41SAndroid Build Coastguard Worker}
533*e4a36f41SAndroid Build Coastguard Worker
534*e4a36f41SAndroid Build Coastguard Workerproperty_contexts_test {
535*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_property_contexts_test",
536*e4a36f41SAndroid Build Coastguard Worker    srcs: [
537*e4a36f41SAndroid Build Coastguard Worker        ":plat_property_contexts",
538*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_property_contexts",
539*e4a36f41SAndroid Build Coastguard Worker    ],
540*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
541*e4a36f41SAndroid Build Coastguard Worker}
542*e4a36f41SAndroid Build Coastguard Worker
543*e4a36f41SAndroid Build Coastguard Workerproperty_contexts_test {
544*e4a36f41SAndroid Build Coastguard Worker    name: "product_property_contexts_test",
545*e4a36f41SAndroid Build Coastguard Worker    srcs: [
546*e4a36f41SAndroid Build Coastguard Worker        ":plat_property_contexts",
547*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_property_contexts",
548*e4a36f41SAndroid Build Coastguard Worker        ":product_property_contexts",
549*e4a36f41SAndroid Build Coastguard Worker    ],
550*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
551*e4a36f41SAndroid Build Coastguard Worker}
552*e4a36f41SAndroid Build Coastguard Worker
553*e4a36f41SAndroid Build Coastguard Workerproperty_contexts_test {
554*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_property_contexts_test",
555*e4a36f41SAndroid Build Coastguard Worker    srcs: [
556*e4a36f41SAndroid Build Coastguard Worker        ":plat_property_contexts",
557*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_property_contexts",
558*e4a36f41SAndroid Build Coastguard Worker        ":product_property_contexts",
559*e4a36f41SAndroid Build Coastguard Worker        ":vendor_property_contexts",
560*e4a36f41SAndroid Build Coastguard Worker    ],
561*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
562*e4a36f41SAndroid Build Coastguard Worker}
563*e4a36f41SAndroid Build Coastguard Worker
564*e4a36f41SAndroid Build Coastguard Workerproperty_contexts_test {
565*e4a36f41SAndroid Build Coastguard Worker    name: "odm_property_contexts_test",
566*e4a36f41SAndroid Build Coastguard Worker    srcs: [
567*e4a36f41SAndroid Build Coastguard Worker        ":plat_property_contexts",
568*e4a36f41SAndroid Build Coastguard Worker        ":system_ext_property_contexts",
569*e4a36f41SAndroid Build Coastguard Worker        ":product_property_contexts",
570*e4a36f41SAndroid Build Coastguard Worker        ":vendor_property_contexts",
571*e4a36f41SAndroid Build Coastguard Worker        ":odm_property_contexts",
572*e4a36f41SAndroid Build Coastguard Worker    ],
573*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
574*e4a36f41SAndroid Build Coastguard Worker}
575*e4a36f41SAndroid Build Coastguard Worker
576*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
577*e4a36f41SAndroid Build Coastguard Worker    name: "plat_service_contexts_test",
578*e4a36f41SAndroid Build Coastguard Worker    srcs: [":plat_service_contexts"],
579*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
580*e4a36f41SAndroid Build Coastguard Worker}
581*e4a36f41SAndroid Build Coastguard Worker
582*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
583*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_service_contexts_test",
584*e4a36f41SAndroid Build Coastguard Worker    srcs: [":system_ext_service_contexts"],
585*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
586*e4a36f41SAndroid Build Coastguard Worker}
587*e4a36f41SAndroid Build Coastguard Worker
588*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
589*e4a36f41SAndroid Build Coastguard Worker    name: "product_service_contexts_test",
590*e4a36f41SAndroid Build Coastguard Worker    srcs: [":product_service_contexts"],
591*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
592*e4a36f41SAndroid Build Coastguard Worker}
593*e4a36f41SAndroid Build Coastguard Worker
594*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
595*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_service_contexts_test",
596*e4a36f41SAndroid Build Coastguard Worker    srcs: [":vendor_service_contexts"],
597*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
598*e4a36f41SAndroid Build Coastguard Worker}
599*e4a36f41SAndroid Build Coastguard Worker
600*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
601*e4a36f41SAndroid Build Coastguard Worker    name: "odm_service_contexts_test",
602*e4a36f41SAndroid Build Coastguard Worker    srcs: [":odm_service_contexts"],
603*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
604*e4a36f41SAndroid Build Coastguard Worker}
605*e4a36f41SAndroid Build Coastguard Worker
606*e4a36f41SAndroid Build Coastguard Workerservice_contexts_test {
607*e4a36f41SAndroid Build Coastguard Worker    name: "merged_service_contexts_test",
608*e4a36f41SAndroid Build Coastguard Worker    srcs: [":merged_service_contexts"],
609*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
610*e4a36f41SAndroid Build Coastguard Worker}
611*e4a36f41SAndroid Build Coastguard Worker
612*e4a36f41SAndroid Build Coastguard Workervndservice_contexts_test {
613*e4a36f41SAndroid Build Coastguard Worker    name: "vndservice_contexts_test",
614*e4a36f41SAndroid Build Coastguard Worker    srcs: [":vndservice_contexts"],
615*e4a36f41SAndroid Build Coastguard Worker    sepolicy: ":precompiled_sepolicy",
616*e4a36f41SAndroid Build Coastguard Worker}
617*e4a36f41SAndroid Build Coastguard Worker
618*e4a36f41SAndroid Build Coastguard Workerfuzzer_bindings_test {
619*e4a36f41SAndroid Build Coastguard Worker    name: "fuzzer_bindings_test",
620*e4a36f41SAndroid Build Coastguard Worker    srcs: [":plat_service_contexts"],
621*e4a36f41SAndroid Build Coastguard Worker}
622*e4a36f41SAndroid Build Coastguard Worker
623*e4a36f41SAndroid Build Coastguard Workertee_service_contexts {
624*e4a36f41SAndroid Build Coastguard Worker    name: "plat_tee_service_contexts",
625*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
626*e4a36f41SAndroid Build Coastguard Worker    srcs: [":tee_service_contexts_files{.plat_private}"],
627*e4a36f41SAndroid Build Coastguard Worker}
628*e4a36f41SAndroid Build Coastguard Worker
629*e4a36f41SAndroid Build Coastguard Workertee_service_contexts {
630*e4a36f41SAndroid Build Coastguard Worker    name: "system_ext_tee_service_contexts",
631*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
632*e4a36f41SAndroid Build Coastguard Worker    srcs: [":tee_service_contexts_files{.system_ext_private}"],
633*e4a36f41SAndroid Build Coastguard Worker    system_ext_specific: true,
634*e4a36f41SAndroid Build Coastguard Worker}
635*e4a36f41SAndroid Build Coastguard Worker
636*e4a36f41SAndroid Build Coastguard Workertee_service_contexts {
637*e4a36f41SAndroid Build Coastguard Worker    name: "product_tee_service_contexts",
638*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
639*e4a36f41SAndroid Build Coastguard Worker    srcs: [":tee_service_contexts_files{.product_private}"],
640*e4a36f41SAndroid Build Coastguard Worker    product_specific: true,
641*e4a36f41SAndroid Build Coastguard Worker}
642*e4a36f41SAndroid Build Coastguard Worker
643*e4a36f41SAndroid Build Coastguard Workertee_service_contexts {
644*e4a36f41SAndroid Build Coastguard Worker    name: "vendor_tee_service_contexts",
645*e4a36f41SAndroid Build Coastguard Worker    defaults: ["contexts_flags_defaults"],
646*e4a36f41SAndroid Build Coastguard Worker    srcs: [
647*e4a36f41SAndroid Build Coastguard Worker        ":tee_service_contexts_files{.plat_vendor}",
648*e4a36f41SAndroid Build Coastguard Worker        ":tee_service_contexts_files{.vendor}",
649*e4a36f41SAndroid Build Coastguard Worker        ":tee_service_contexts_files{.reqd_mask}",
650*e4a36f41SAndroid Build Coastguard Worker    ],
651*e4a36f41SAndroid Build Coastguard Worker    soc_specific: true,
652*e4a36f41SAndroid Build Coastguard Worker}
653