Tri Vo | a5cfd3e | 2018-03-22 11:35:02 -0700 | [diff] [blame] | 1 | // 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 Stoep | ecd288f | 2019-02-15 12:18:15 -0800 | [diff] [blame] | 15 | cc_defaults { name: "selinux_policy_version", cflags: ["-DSEPOLICY_VERSION=30"], } |
| 16 | |
Tri Vo | 84e247a | 2018-03-25 20:03:58 -0700 | [diff] [blame] | 17 | se_filegroup { |
| 18 | name: "26.0.board.compat.map", |
| 19 | srcs: [ |
| 20 | "compat/26.0/26.0.cil", |
| 21 | ], |
| 22 | } |
| 23 | |
| 24 | se_filegroup { |
| 25 | name: "27.0.board.compat.map", |
| 26 | srcs: [ |
| 27 | "compat/27.0/27.0.cil", |
| 28 | ], |
| 29 | } |
| 30 | |
Jae Shin | 1fa9634 | 2018-07-11 18:30:44 +0900 | [diff] [blame] | 31 | se_filegroup { |
| 32 | name: "28.0.board.compat.map", |
| 33 | srcs: [ |
| 34 | "compat/28.0/28.0.cil", |
| 35 | ], |
| 36 | } |
| 37 | |
Jinguang Dong | e012569 | 2019-03-05 17:20:54 +0800 | [diff] [blame] | 38 | se_filegroup { |
| 39 | name: "26.0.board.ignore.map", |
| 40 | srcs: [ |
| 41 | "compat/26.0/26.0.ignore.cil", |
| 42 | ], |
| 43 | } |
| 44 | |
| 45 | se_filegroup { |
| 46 | name: "27.0.board.ignore.map", |
| 47 | srcs: [ |
| 48 | "compat/27.0/27.0.ignore.cil", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | se_filegroup { |
| 53 | name: "28.0.board.ignore.map", |
| 54 | srcs: [ |
| 55 | "compat/28.0/28.0.ignore.cil", |
| 56 | ], |
| 57 | } |
| 58 | |
Tri Vo | a5cfd3e | 2018-03-22 11:35:02 -0700 | [diff] [blame] | 59 | se_cil_compat_map { |
| 60 | name: "26.0.cil", |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 61 | bottom_half: [":26.0.board.compat.map"], |
| 62 | top_half: "27.0.cil", |
Tri Vo | a5cfd3e | 2018-03-22 11:35:02 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | se_cil_compat_map { |
| 66 | name: "27.0.cil", |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 67 | bottom_half: [":27.0.board.compat.map"], |
| 68 | top_half: "28.0.cil", |
Tri Vo | a5cfd3e | 2018-03-22 11:35:02 -0700 | [diff] [blame] | 69 | } |
Jae Shin | 1fa9634 | 2018-07-11 18:30:44 +0900 | [diff] [blame] | 70 | |
| 71 | se_cil_compat_map { |
| 72 | name: "28.0.cil", |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 73 | bottom_half: [":28.0.board.compat.map"], |
Tri Vo | 8043136 | 2019-05-29 01:10:07 +0000 | [diff] [blame^] | 74 | // top_half: "29.0.cil", |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | se_cil_compat_map { |
| 78 | name: "26.0.ignore.cil", |
Jinguang Dong | e012569 | 2019-03-05 17:20:54 +0800 | [diff] [blame] | 79 | bottom_half: [":26.0.board.ignore.map"], |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 80 | top_half: "27.0.ignore.cil", |
| 81 | } |
| 82 | |
| 83 | se_cil_compat_map { |
| 84 | name: "27.0.ignore.cil", |
Jinguang Dong | e012569 | 2019-03-05 17:20:54 +0800 | [diff] [blame] | 85 | bottom_half: [":27.0.board.ignore.map"], |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 86 | top_half: "28.0.ignore.cil", |
| 87 | } |
| 88 | |
| 89 | se_cil_compat_map { |
| 90 | name: "28.0.ignore.cil", |
Jinguang Dong | e012569 | 2019-03-05 17:20:54 +0800 | [diff] [blame] | 91 | bottom_half: [":28.0.board.ignore.map"], |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 92 | // top_half: "29.0.ignore.cil", |
Jae Shin | 1fa9634 | 2018-07-11 18:30:44 +0900 | [diff] [blame] | 93 | } |
Inseob Kim | b554e59 | 2019-04-15 20:10:46 +0900 | [diff] [blame] | 94 | |
Jeff Vander Stoep | 564e292 | 2019-05-02 13:48:44 -0700 | [diff] [blame] | 95 | prebuilt_etc { |
Tri Vo | 8043136 | 2019-05-29 01:10:07 +0000 | [diff] [blame^] | 96 | name: "28.0.compat.cil", |
| 97 | src: "private/compat/28.0/28.0.compat.cil", |
Jeff Vander Stoep | 564e292 | 2019-05-02 13:48:44 -0700 | [diff] [blame] | 98 | sub_dir: "selinux/mapping", |
| 99 | } |
| 100 | |
| 101 | prebuilt_etc { |
| 102 | name: "27.0.compat.cil", |
| 103 | src: "private/compat/27.0/27.0.compat.cil", |
| 104 | sub_dir: "selinux/mapping", |
| 105 | } |
| 106 | |
| 107 | prebuilt_etc { |
Tri Vo | 8043136 | 2019-05-29 01:10:07 +0000 | [diff] [blame^] | 108 | name: "26.0.compat.cil", |
| 109 | src: "private/compat/26.0/26.0.compat.cil", |
Jeff Vander Stoep | 564e292 | 2019-05-02 13:48:44 -0700 | [diff] [blame] | 110 | sub_dir: "selinux/mapping", |
| 111 | } |
| 112 | |
Inseob Kim | b554e59 | 2019-04-15 20:10:46 +0900 | [diff] [blame] | 113 | se_filegroup { |
| 114 | name: "file_contexts_files", |
| 115 | srcs: ["file_contexts"], |
| 116 | } |
| 117 | |
| 118 | se_filegroup { |
| 119 | name: "file_contexts_asan_files", |
| 120 | srcs: ["file_contexts_asan"], |
| 121 | } |
| 122 | |
| 123 | se_filegroup { |
| 124 | name: "file_contexts_overlayfs_files", |
| 125 | srcs: ["file_contexts_overlayfs"], |
| 126 | } |
| 127 | |
| 128 | se_filegroup { |
| 129 | name: "hwservice_contexts_files", |
| 130 | srcs: ["hwservice_contexts"], |
| 131 | } |
| 132 | |
| 133 | se_filegroup { |
| 134 | name: "property_contexts_files", |
| 135 | srcs: ["property_contexts"], |
| 136 | } |
| 137 | |
| 138 | se_filegroup { |
| 139 | name: "service_contexts_files", |
| 140 | srcs: ["service_contexts"], |
| 141 | } |
| 142 | |
| 143 | file_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 | |
| 162 | file_contexts { |
| 163 | name: "vendor_file_contexts", |
| 164 | srcs: [":file_contexts_files"], |
| 165 | soc_specific: true, |
| 166 | recovery_available: true, |
| 167 | } |
| 168 | |
| 169 | file_contexts { |
| 170 | name: "product_file_contexts", |
| 171 | srcs: [":file_contexts_files"], |
| 172 | product_specific: true, |
| 173 | recovery_available: true, |
| 174 | } |
| 175 | |
| 176 | file_contexts { |
| 177 | name: "odm_file_contexts", |
| 178 | srcs: [":file_contexts_files"], |
| 179 | device_specific: true, |
| 180 | recovery_available: true, |
| 181 | } |
| 182 | |
| 183 | hwservice_contexts { |
| 184 | name: "plat_hwservice_contexts", |
| 185 | srcs: [":hwservice_contexts_files"], |
| 186 | } |
| 187 | |
| 188 | hwservice_contexts { |
| 189 | name: "product_hwservice_contexts", |
| 190 | srcs: [":hwservice_contexts_files"], |
| 191 | product_specific: true, |
| 192 | } |
| 193 | |
| 194 | hwservice_contexts { |
| 195 | name: "vendor_hwservice_contexts", |
| 196 | srcs: [":hwservice_contexts_files"], |
| 197 | reqd_mask: true, |
| 198 | soc_specific: true, |
| 199 | } |
| 200 | |
| 201 | hwservice_contexts { |
| 202 | name: "odm_hwservice_contexts", |
| 203 | srcs: [":hwservice_contexts_files"], |
| 204 | device_specific: true, |
| 205 | } |
| 206 | |
| 207 | property_contexts { |
| 208 | name: "plat_property_contexts", |
| 209 | srcs: [":property_contexts_files"], |
| 210 | recovery_available: true, |
| 211 | } |
| 212 | |
| 213 | property_contexts { |
| 214 | name: "product_property_contexts", |
| 215 | srcs: [":property_contexts_files"], |
| 216 | product_specific: true, |
| 217 | recovery_available: true, |
| 218 | } |
| 219 | |
| 220 | property_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 | |
| 228 | property_contexts { |
| 229 | name: "odm_property_contexts", |
| 230 | srcs: [":property_contexts_files"], |
| 231 | device_specific: true, |
| 232 | recovery_available: true, |
| 233 | } |
| 234 | |
| 235 | service_contexts { |
| 236 | name: "plat_service_contexts", |
| 237 | srcs: [":service_contexts_files"], |
| 238 | } |
| 239 | |
| 240 | service_contexts { |
| 241 | name: "product_service_contexts", |
| 242 | srcs: [":service_contexts_files"], |
| 243 | product_specific: true, |
| 244 | } |
| 245 | |
| 246 | service_contexts { |
| 247 | name: "vendor_service_contexts", |
| 248 | srcs: [":service_contexts_files"], |
| 249 | reqd_mask: true, |
| 250 | soc_specific: true, |
| 251 | } |