From 3cdc1e2ff85f63339b07338d69e76c221db5e79d Mon Sep 17 00:00:00 2001 From: adi8900 Date: Tue, 7 Jun 2022 20:29:51 +0000 Subject: [PATCH] sm6250-common: Address QCOM WFD denials * Fixes buggy QCOM WFD connections. Change-Id: I9e0b92e7bc9d0ae5e3f50a4f18a0b19988da9a00 --- BoardConfigCommon.mk | 1 + sepolicy/private/property_contexts | 2 ++ sepolicy/private/system_server.te | 1 + sepolicy/private/vendor_wfd_app.te | 1 + 4 files changed, 5 insertions(+) create mode 100644 sepolicy/private/property_contexts create mode 100644 sepolicy/private/system_server.te create mode 100644 sepolicy/private/vendor_wfd_app.te diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 933ca60..e4da630 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -170,6 +170,7 @@ VENDOR_SECURITY_PATCH := 2022-06-05 # Sepolicy include device/qcom/sepolicy_vndr/SEPolicy.mk +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor # Verified Boot diff --git a/sepolicy/private/property_contexts b/sepolicy/private/property_contexts new file mode 100644 index 0000000..c847b7e --- /dev/null +++ b/sepolicy/private/property_contexts @@ -0,0 +1,2 @@ +# WiFi Display +persist.vendor.setWFDInfo. u:object_r:vendor_wfd_sys_debug_prop:s0 diff --git a/sepolicy/private/system_server.te b/sepolicy/private/system_server.te new file mode 100644 index 0000000..0071ee2 --- /dev/null +++ b/sepolicy/private/system_server.te @@ -0,0 +1 @@ +get_prop(system_server, vendor_wfd_sys_debug_prop) diff --git a/sepolicy/private/vendor_wfd_app.te b/sepolicy/private/vendor_wfd_app.te new file mode 100644 index 0000000..4e78cfb --- /dev/null +++ b/sepolicy/private/vendor_wfd_app.te @@ -0,0 +1 @@ +get_prop(vendor_wfd_app, vendor_wfd_sys_debug_prop)