blob: 8f7355a9711bb7be4812e544b0b5985496ee9411 [file] [log] [blame]
Inseob Kim085f22f2023-11-09 11:13:01 +09001// 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 Kimbf7f4a42024-02-14 13:53:39 +090015// 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.
17se_flags {
18 name: "aosp_selinux_flags",
Chienyuan Huang2e19c762023-12-03 07:39:48 +000019 flags: [
20 "RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT",
21 "RELEASE_HARDWARE_BLUETOOTH_RANGING_SERVICE",
22 ],
Inseob Kimbf7f4a42024-02-14 13:53:39 +090023 export_to: ["all_selinux_flags"],
24}
25
26// se_flags_collector collects flags from exported se_flags modules and converts it to build flags.
27se_flags_collector {
28 name: "all_selinux_flags",
29}
30
31se_policy_conf_defaults {
32 name: "se_policy_conf_flags_defaults",
33 srcs: [":sepolicy_flagging_macros"],
34 build_flags: ["all_selinux_flags"],
Inseob Kim085f22f2023-11-09 11:13:01 +090035}
36
37contexts_defaults {
38 name: "contexts_flags_defaults",
39 srcs: [":sepolicy_flagging_macros"],
40 neverallow_files: [":sepolicy_flagging_macros"], // for seapp_contexts
Inseob Kimbf7f4a42024-02-14 13:53:39 +090041 build_flags: ["all_selinux_flags"],
Inseob Kim085f22f2023-11-09 11:13:01 +090042}
43
44filegroup {
45 name: "sepolicy_flagging_macros",
46 srcs: ["te_macros"],
47}