Add prebuilt_sepolicy_srcs filegroup
This allows OEM to get a copy of precompiled SEPolicy. This can be useful when an OEM needs to bind-mount some of the Android partitions across the VM boundary to ensure the correct labeling. Bug: 301629552 Test: Presubmit builds should be enough. Change-Id: I3339a7abfe2612993ee659fd5492c323aa895999
This commit is contained in:
parent
b200a756a0
commit
d8c51f24ce
1 changed files with 12 additions and 2 deletions
14
Android.bp
14
Android.bp
|
@ -556,8 +556,8 @@ soong_config_module_type {
|
|||
properties: ["vendor", "device_specific"],
|
||||
}
|
||||
|
||||
precompiled_se_policy_binary {
|
||||
name: "precompiled_sepolicy",
|
||||
filegroup {
|
||||
name: "precompiled_sepolicy_srcs",
|
||||
srcs: [
|
||||
":plat_sepolicy.cil",
|
||||
":plat_pub_versioned.cil",
|
||||
|
@ -569,6 +569,16 @@ precompiled_se_policy_binary {
|
|||
":system_ext_mapping_file",
|
||||
":product_mapping_file",
|
||||
],
|
||||
// Make precompiled_sepolicy_srcs as public so that OEMs have access to them.
|
||||
// Useful when some partitions need to be bind mounted across VM boundaries.
|
||||
visibility: ["//visibility:public"],
|
||||
}
|
||||
|
||||
precompiled_se_policy_binary {
|
||||
name: "precompiled_sepolicy",
|
||||
srcs: [
|
||||
":precompiled_sepolicy_srcs",
|
||||
],
|
||||
soong_config_variables: {
|
||||
BOARD_USES_ODMIMAGE: {
|
||||
device_specific: true,
|
||||
|
|
Loading…
Reference in a new issue