Merge "Add sepolicy for hal_wifi to access /proc/modules" am: 6acd70b918 am: ded0b58d62
am: 9d86e622e3
Change-Id: Ib83f52f4dae096d42dedf17898cf20d8c3923f2e
diff --git a/public/hal_wifi.te b/public/hal_wifi.te
index 5e0b9bc..e267731 100644
--- a/public/hal_wifi.te
+++ b/public/hal_wifi.te
@@ -21,3 +21,5 @@
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