From e7d858987839af17597e6f6f34391af13b2db620 Mon Sep 17 00:00:00 2001 From: Roy Luo Date: Fri, 16 Aug 2024 18:41:23 +0000 Subject: [PATCH] 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 --- sepolicy/Android.bp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sepolicy/Android.bp diff --git a/sepolicy/Android.bp b/sepolicy/Android.bp new file mode 100644 index 0000000..160e494 --- /dev/null +++ b/sepolicy/Android.bp @@ -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"], +}