From 3cb55ae129fe4a656351992e18133ebeb0bcf738 Mon Sep 17 00:00:00 2001 From: "Kevin F. Haggerty" Date: Thu, 21 Jan 2021 07:21:37 -0700 Subject: [PATCH] msm8974-common: sepolicy: Resolve hostapd HAL denials avc: denied { read } for name="phy80211" dev="sysfs" ino=30200 scontext=u:r:hal_wifi_hostapd_default:s0 tcontext=u:object_r:sysfs_net:s0 tclass=lnk_file permissive=0 avc: denied { open } for name="rfkill" dev="tmpfs" ino=8718 scontext=u:r:hal_wifi_hostapd_default:s0 tcontext=u:object_r:wlan_device:s0 tclass=chr_file permissive=0 Change-Id: Ie196e3fb2c5a9458a73444bb1de13f15a037532d --- sepolicy/common/hal_wifi_hostapd_default.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sepolicy/common/hal_wifi_hostapd_default.te b/sepolicy/common/hal_wifi_hostapd_default.te index e71f109..7315139 100644 --- a/sepolicy/common/hal_wifi_hostapd_default.te +++ b/sepolicy/common/hal_wifi_hostapd_default.te @@ -1 +1,2 @@ -allow hal_wifi_hostapd_default wlan_device:chr_file read; +allow hal_wifi_hostapd_default sysfs_net:lnk_file read; +allow hal_wifi_hostapd_default wlan_device:chr_file r_file_perms;