xref: /aosp_15_r20/system/sepolicy/prebuilts/api/30.0/Android.bp (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Worker// Copyright (C) 2023 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 Workerse_policy_conf {
16*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_reqd_policy_mask.conf",
17*e4a36f41SAndroid Build Coastguard Worker    defaults: ["se_policy_conf_flags_defaults"],
18*e4a36f41SAndroid Build Coastguard Worker    srcs: reqd_mask_policy,
19*e4a36f41SAndroid Build Coastguard Worker    installable: false,
20*e4a36f41SAndroid Build Coastguard Worker    build_variant: "user",
21*e4a36f41SAndroid Build Coastguard Worker    board_api_level: "30",
22*e4a36f41SAndroid Build Coastguard Worker}
23*e4a36f41SAndroid Build Coastguard Worker
24*e4a36f41SAndroid Build Coastguard Workerse_policy_cil {
25*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_reqd_policy_mask.cil",
26*e4a36f41SAndroid Build Coastguard Worker    src: ":30.0_reqd_policy_mask.conf",
27*e4a36f41SAndroid Build Coastguard Worker    secilc_check: false,
28*e4a36f41SAndroid Build Coastguard Worker    installable: false,
29*e4a36f41SAndroid Build Coastguard Worker}
30*e4a36f41SAndroid Build Coastguard Worker
31*e4a36f41SAndroid Build Coastguard Workerse_policy_conf {
32*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_pub_policy.conf",
33*e4a36f41SAndroid Build Coastguard Worker    defaults: ["se_policy_conf_flags_defaults"],
34*e4a36f41SAndroid Build Coastguard Worker    srcs: [
35*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.plat_public_30.0}",
36*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.reqd_mask}",
37*e4a36f41SAndroid Build Coastguard Worker    ],
38*e4a36f41SAndroid Build Coastguard Worker    installable: false,
39*e4a36f41SAndroid Build Coastguard Worker    build_variant: "user",
40*e4a36f41SAndroid Build Coastguard Worker    board_api_level: "30",
41*e4a36f41SAndroid Build Coastguard Worker}
42*e4a36f41SAndroid Build Coastguard Worker
43*e4a36f41SAndroid Build Coastguard Workerse_policy_cil {
44*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_pub_policy.cil",
45*e4a36f41SAndroid Build Coastguard Worker    src: ":30.0_plat_pub_policy.conf",
46*e4a36f41SAndroid Build Coastguard Worker    filter_out: [":30.0_reqd_policy_mask.cil"],
47*e4a36f41SAndroid Build Coastguard Worker    secilc_check: false,
48*e4a36f41SAndroid Build Coastguard Worker    installable: false,
49*e4a36f41SAndroid Build Coastguard Worker}
50*e4a36f41SAndroid Build Coastguard Worker
51*e4a36f41SAndroid Build Coastguard Workerse_policy_conf {
52*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_product_pub_policy.conf",
53*e4a36f41SAndroid Build Coastguard Worker    defaults: ["se_policy_conf_flags_defaults"],
54*e4a36f41SAndroid Build Coastguard Worker    srcs: [
55*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.plat_public_30.0}",
56*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.system_ext_public_30.0}",
57*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.product_public_30.0}",
58*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.reqd_mask}",
59*e4a36f41SAndroid Build Coastguard Worker    ],
60*e4a36f41SAndroid Build Coastguard Worker    installable: false,
61*e4a36f41SAndroid Build Coastguard Worker    build_variant: "user",
62*e4a36f41SAndroid Build Coastguard Worker    board_api_level: "30",
63*e4a36f41SAndroid Build Coastguard Worker}
64*e4a36f41SAndroid Build Coastguard Worker
65*e4a36f41SAndroid Build Coastguard Workerse_policy_cil {
66*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_product_pub_policy.cil",
67*e4a36f41SAndroid Build Coastguard Worker    src: ":30.0_product_pub_policy.conf",
68*e4a36f41SAndroid Build Coastguard Worker    filter_out: [":30.0_reqd_policy_mask.cil"],
69*e4a36f41SAndroid Build Coastguard Worker    secilc_check: false,
70*e4a36f41SAndroid Build Coastguard Worker    installable: false,
71*e4a36f41SAndroid Build Coastguard Worker}
72*e4a36f41SAndroid Build Coastguard Worker
73*e4a36f41SAndroid Build Coastguard Workerse_versioned_policy {
74*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_pub_versioned.cil",
75*e4a36f41SAndroid Build Coastguard Worker    base: ":30.0_product_pub_policy.cil",
76*e4a36f41SAndroid Build Coastguard Worker    target_policy: ":30.0_product_pub_policy.cil",
77*e4a36f41SAndroid Build Coastguard Worker    version: "30.0",
78*e4a36f41SAndroid Build Coastguard Worker    installable: false,
79*e4a36f41SAndroid Build Coastguard Worker}
80*e4a36f41SAndroid Build Coastguard Worker
81*e4a36f41SAndroid Build Coastguard Workerse_policy_conf {
82*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_policy.conf",
83*e4a36f41SAndroid Build Coastguard Worker    defaults: ["se_policy_conf_flags_defaults"],
84*e4a36f41SAndroid Build Coastguard Worker    srcs: [
85*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.plat_public_30.0}",
86*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.plat_private_30.0}",
87*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.system_ext_public_30.0}",
88*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.system_ext_private_30.0}",
89*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.product_public_30.0}",
90*e4a36f41SAndroid Build Coastguard Worker        ":se_build_files{.product_private_30.0}",
91*e4a36f41SAndroid Build Coastguard Worker    ],
92*e4a36f41SAndroid Build Coastguard Worker    installable: false,
93*e4a36f41SAndroid Build Coastguard Worker    build_variant: "user",
94*e4a36f41SAndroid Build Coastguard Worker    board_api_level: "30",
95*e4a36f41SAndroid Build Coastguard Worker}
96*e4a36f41SAndroid Build Coastguard Worker
97*e4a36f41SAndroid Build Coastguard Workerse_policy_cil {
98*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_policy.cil",
99*e4a36f41SAndroid Build Coastguard Worker    src: ":30.0_plat_policy.conf",
100*e4a36f41SAndroid Build Coastguard Worker    additional_cil_files: [":sepolicy_technical_debt{.plat_private_30.0}"],
101*e4a36f41SAndroid Build Coastguard Worker    installable: false,
102*e4a36f41SAndroid Build Coastguard Worker}
103*e4a36f41SAndroid Build Coastguard Worker
104*e4a36f41SAndroid Build Coastguard Workerse_policy_binary {
105*e4a36f41SAndroid Build Coastguard Worker    name: "30.0_plat_policy",
106*e4a36f41SAndroid Build Coastguard Worker    srcs: [":30.0_plat_policy.cil"],
107*e4a36f41SAndroid Build Coastguard Worker    installable: false,
108*e4a36f41SAndroid Build Coastguard Worker    dist: {
109*e4a36f41SAndroid Build Coastguard Worker        targets: ["base-sepolicy-files-for-mapping"],
110*e4a36f41SAndroid Build Coastguard Worker    },
111*e4a36f41SAndroid Build Coastguard Worker}
112