1// Copyright (C) 2022 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 15// This file contains module definitions for mac_permissions.xml files. 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "system_sepolicy_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["system_sepolicy_license"], 24} 25 26se_build_files { 27 name: "keys.conf", 28 srcs: ["keys.conf"], 29} 30 31se_build_files { 32 name: "mac_permissions.xml", 33 srcs: ["mac_permissions.xml"], 34} 35 36mac_permissions { 37 name: "plat_mac_permissions.xml", 38 keys: [ 39 ":keys.conf{.plat_private}", 40 ":keys.conf{.system_ext_private}", 41 ":keys.conf{.product_private}", 42 ], 43 srcs: [":mac_permissions.xml{.plat_private}"], 44} 45 46mac_permissions { 47 name: "system_ext_mac_permissions.xml", 48 keys: [ 49 ":keys.conf{.system_ext_private}", 50 ":keys.conf{.reqd_mask}", 51 ], 52 srcs: [ 53 ":mac_permissions.xml{.system_ext_private}", 54 ":mac_permissions.xml{.reqd_mask}", 55 ], 56 system_ext_specific: true, 57} 58 59mac_permissions { 60 name: "product_mac_permissions.xml", 61 keys: [ 62 ":keys.conf{.product_private}", 63 ":keys.conf{.reqd_mask}", 64 ], 65 srcs: [ 66 ":mac_permissions.xml{.product_private}", 67 ":mac_permissions.xml{.reqd_mask}", 68 ], 69 product_specific: true, 70} 71 72mac_permissions { 73 name: "vendor_mac_permissions.xml", 74 keys: [ 75 ":keys.conf{.plat_vendor_for_vendor}", 76 ":keys.conf{.vendor}", 77 ":keys.conf{.reqd_mask_for_vendor}", 78 ], 79 srcs: [ 80 ":mac_permissions.xml{.plat_vendor_for_vendor}", 81 ":mac_permissions.xml{.vendor}", 82 ":mac_permissions.xml{.reqd_mask_for_vendor}", 83 ], 84 vendor: true, 85} 86 87mac_permissions { 88 name: "odm_mac_permissions.xml", 89 keys: [ 90 ":keys.conf{.odm}", 91 ":keys.conf{.reqd_mask_for_vendor}", 92 ], 93 srcs: [ 94 ":mac_permissions.xml{.odm}", 95 ":mac_permissions.xml{.reqd_mask_for_vendor}", 96 ], 97 device_specific: true, 98} 99