From 403efef2aff7269433b1b4a56822528c531a2b84 Mon Sep 17 00:00:00 2001 From: Tomonori Nanbu Date: Tue, 23 May 2017 19:20:04 +0900 Subject: [PATCH] Add sepolicy for hal_wifi to access /proc/modules Add sepolicy to hal_wifi to access /proc/modules to check if Wi-Fi driver is loaded. Bug: 62013623 Change-Id: Ib700170095b183a1e0e6a36b64e7c65655174f21 --- public/hal_wifi.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/hal_wifi.te b/public/hal_wifi.te index e06d8f9b0..d80dcfda3 100644 --- a/public/hal_wifi.te +++ b/public/hal_wifi.te @@ -18,3 +18,5 @@ allow hal_wifi self:netlink_socket create_socket_perms_no_ioctl; allow hal_wifi self:netlink_generic_socket create_socket_perms_no_ioctl; # hal_wifi writes firmware paths to this file. allow hal_wifi sysfs_wlan_fwpath:file { w_file_perms }; +# allow hal_wifi to access /proc/modules to check if Wi-Fi driver is loaded +allow hal_wifi proc_modules:file { getattr open read }; \ No newline at end of file