Export build flag to selinux policy for sysfs_udc fscontext

sysfs_udc context is introduced in aosp/3163782.
Build-time flag RELEASE_USB_UDC_SYSFS_SELINUX_POLICY_ENABLED guards
the access to the new fscontext.
This change exports the flag to selinux policy to make it visible.

Bug: 339241080
Test: build
Flag: RELEASE_USB_UDC_SYSFS_SELINUX_POLICY_ENABLED
Change-Id: I442c5cb16ee40e0a54bddd7c1550dbb4a69557c9
This commit is contained in:
Roy Luo 2024-08-16 18:41:23 +00:00
parent 7cf82126a0
commit e7d8589878

5
sepolicy/Android.bp Normal file
View file

@ -0,0 +1,5 @@
se_flags {
name: "usb_udc_sysfs_selinux_flags",
flags: ["RELEASE_USB_UDC_SYSFS_SELINUX_POLICY_ENABLED"],
export_to: ["all_selinux_flags"],
}