• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20genrule {
21    name: "SEPolicy-33",
22    defaults: ["sepolicy_create_zip_gen_default"],
23    srcs: [
24        ":apex_file_contexts-33",
25        ":apex_property_contexts-33",
26        ":apex_service_contexts-33",
27        ":apex_seapp_contexts-33",
28        ":apex_sepolicy-33.cil",
29        ":apex_sepolicy-33.decompiled.cil",
30        ":apex_sepolicy.sha256",
31        ":sepolicy_apex_test_file",
32
33    ],
34    out: ["SEPolicy-33.zip"],
35}
36
37prebuilt_etc {
38    name: "SEPolicy-33.zip",
39    src: ":SEPolicy-33",
40    installable: false,
41    filename: "SEPolicy-33.zip",
42}
43
44genrule {
45    name: "SEPolicy-33.zip.sig.gen",
46    defaults: ["sepolicy_sig_gen_default"],
47    srcs: [":SEPolicy-33.zip"],
48    out: ["SEPolicy-33.zip.sig.gen"],
49}
50
51prebuilt_etc {
52    name: "SEPolicy-33.zip.sig",
53    src: ":SEPolicy-33.zip.sig.gen",
54    installable: false,
55    filename: "SEPolicy-33.zip.sig",
56}
57
58genrule {
59    name: "SEPolicy-33.zip.fsv_sig.gen",
60    defaults: ["sepolicy_verity_sig_gen_default"],
61    srcs: [":SEPolicy-33.zip"],
62    out: ["SEPolicy-33.zip.fsv_sig.gen"],
63}
64
65prebuilt_etc {
66    name: "SEPolicy-33.zip.fsv_sig",
67    src: ":SEPolicy-33.zip.fsv_sig.gen",
68    installable: false,
69    filename: "SEPolicy-33.zip.fsv_sig",
70}
71
72genrule {
73    name: "SEPolicy-33.pb.gen",
74    defaults: ["sepolicy_info_bin_gen_default"],
75    srcs: ["SEPolicy-33.textproto"],
76    out: ["SEPolicy-33.pb.gen"],
77}
78
79prebuilt_etc {
80    name: "SEPolicy-33.pb",
81    src: ":SEPolicy-33.pb.gen",
82    installable: false,
83    filename: "SEPolicy-33.pb",
84}
85
86// Versions of the most up-to-date apex sepolicies are installed on /system.
87prebuilt_etc {
88    name: "SEPolicy.zip",
89    src: ":SEPolicy-33",
90    relative_install_path: "selinux/apex",
91}
92
93prebuilt_etc {
94    name: "SEPolicy.zip.sig",
95    src: ":SEPolicy-33.zip.sig.gen",
96    filename: "SEPolicy.zip.sig",
97    relative_install_path: "selinux/apex",
98}
99
100prebuilt_etc {
101    name: "SEPolicy.zip.fsv_sig",
102    src: ":SEPolicy-33.zip.fsv_sig.gen",
103    filename: "SEPolicy.zip.fsv_sig",
104    relative_install_path: "selinux/apex",
105}
106