Inseob Kim | 085f22f | 2023-11-09 11:13:01 +0900 | [diff] [blame] | 1 | // Copyright (C) 2023 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 | |
Inseob Kim | bf7f4a4 | 2024-02-14 13:53:39 +0900 | [diff] [blame] | 15 | // This module contains a list of build time flags (defined on AOSP) for sepolicy. |
| 16 | // Additional se_flags modules can be added anywhere for additional flags. |
| 17 | se_flags { |
| 18 | name: "aosp_selinux_flags", |
Chienyuan Huang | 2e19c76 | 2023-12-03 07:39:48 +0000 | [diff] [blame] | 19 | flags: [ |
Jeongik Cha | f09f43c | 2024-04-02 14:50:14 +0900 | [diff] [blame] | 20 | "RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES", |
Inseob Kim | 9c0d712 | 2024-07-22 18:04:18 +0900 | [diff] [blame] | 21 | "RELEASE_AVF_ENABLE_EARLY_VM", |
Chienyuan Huang | 2e19c76 | 2023-12-03 07:39:48 +0000 | [diff] [blame] | 22 | "RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT", |
Alan Stokes | 38131e7 | 2024-02-20 11:06:37 +0000 | [diff] [blame] | 23 | "RELEASE_AVF_ENABLE_LLPVM_CHANGES", |
Seungjae Yoo | f60a1e0 | 2024-05-20 14:15:22 +0900 | [diff] [blame] | 24 | "RELEASE_AVF_ENABLE_NETWORK", |
Aidan Wolter | 56d74cd | 2024-08-20 19:19:37 +0000 | [diff] [blame] | 25 | "RELEASE_AVF_ENABLE_MICROFUCHSIA", |
Orlando Arbildo | df3a596 | 2024-10-21 23:10:11 +0000 | [diff] [blame] | 26 | "RELEASE_AVF_ENABLE_WIDEVINE_PVM", |
Shreshta Manu | 7ce9b2a | 2024-09-18 03:39:01 +0000 | [diff] [blame] | 27 | "RELEASE_RANGING_STACK", |
Ted Bauer | eaeb65f | 2024-07-01 19:36:21 +0000 | [diff] [blame] | 28 | "RELEASE_READ_FROM_NEW_STORAGE", |
Roman Kalukiewicz | d416f1b | 2024-08-06 00:18:32 +0000 | [diff] [blame] | 29 | "RELEASE_SUPERVISION_SERVICE", |
Chienyuan Huang | 2e19c76 | 2023-12-03 07:39:48 +0000 | [diff] [blame] | 30 | "RELEASE_HARDWARE_BLUETOOTH_RANGING_SERVICE", |
Ellen Arteca | 27b515e | 2024-04-30 20:26:55 +0000 | [diff] [blame] | 31 | "RELEASE_UNLOCKED_STORAGE_API", |
Chienyuan Huang | 2e19c76 | 2023-12-03 07:39:48 +0000 | [diff] [blame] | 32 | ], |
Inseob Kim | bf7f4a4 | 2024-02-14 13:53:39 +0900 | [diff] [blame] | 33 | export_to: ["all_selinux_flags"], |
| 34 | } |
| 35 | |
| 36 | // se_flags_collector collects flags from exported se_flags modules and converts it to build flags. |
| 37 | se_flags_collector { |
| 38 | name: "all_selinux_flags", |
| 39 | } |
| 40 | |
| 41 | se_policy_conf_defaults { |
| 42 | name: "se_policy_conf_flags_defaults", |
| 43 | srcs: [":sepolicy_flagging_macros"], |
| 44 | build_flags: ["all_selinux_flags"], |
Inseob Kim | 085f22f | 2023-11-09 11:13:01 +0900 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | contexts_defaults { |
| 48 | name: "contexts_flags_defaults", |
| 49 | srcs: [":sepolicy_flagging_macros"], |
| 50 | neverallow_files: [":sepolicy_flagging_macros"], // for seapp_contexts |
Inseob Kim | bf7f4a4 | 2024-02-14 13:53:39 +0900 | [diff] [blame] | 51 | build_flags: ["all_selinux_flags"], |
Inseob Kim | 085f22f | 2023-11-09 11:13:01 +0900 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | filegroup { |
| 55 | name: "sepolicy_flagging_macros", |
Inseob Kim | 113f4d6 | 2024-07-18 11:29:51 +0900 | [diff] [blame] | 56 | srcs: ["flagging_macros"], |
Inseob Kim | 085f22f | 2023-11-09 11:13:01 +0900 | [diff] [blame] | 57 | } |