From 1c725d5df8ecadc6450c5eabab80c95ccaa9acd8 Mon Sep 17 00:00:00 2001 From: Simfex Chiu Date: Sat, 18 Jan 2020 09:56:20 +0800 Subject: [PATCH] [ALPS03940671] Wlan: add selinux policy in wlan_assistant.te [Detail] selinux policy restrict access of /mnt/vendor, application should add policy for the path [Solution] add new policy for /mnt/vendor MTK-Commit-Id: a02d937c92f815a7e8f785abee7304a2f3f12cf9 Change-Id: I3221d0bcd13374e296c8d4923b4679f4904fb71f Signed-off-by: Simfex Chiu CR-Id: ALPS03940671 Feature: [Module]Wi-Fi HAL --- non_plat/wlan_assistant.te | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/non_plat/wlan_assistant.te b/non_plat/wlan_assistant.te index bb23601..f2f4db2 100644 --- a/non_plat/wlan_assistant.te +++ b/non_plat/wlan_assistant.te @@ -37,4 +37,6 @@ allow wlan_assistant self:udp_socket { create ioctl }; allow wlan_assistant nvdata_file:dir { search read getattr open }; allow wlan_assistant nvdata_file:file { read getattr open }; allow wlan_assistant sysfs:file { open read }; -allow wlan_assistant wmtWifi_device:chr_file { read write getattr open }; \ No newline at end of file +allow wlan_assistant wmtWifi_device:chr_file { read write getattr open }; + +allow wlan_assistant mnt_vendor_file :dir search;