diff --git a/sepolicy/file.te b/sepolicy/file.te index f93a8993..0e6c344f 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -9,6 +9,9 @@ type sysfs_msm_subsys_restart, sysfs_type, fs_type; type debugfs_rmt_storage, debugfs_type, fs_type; +# /proc +type proc_wifi_dbg, fs_type; + type qmuxd_socket, file_type; type netmgrd_socket, file_type; type thermal_socket, file_type; diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts new file mode 100644 index 00000000..d578ece2 --- /dev/null +++ b/sepolicy/genfs_contexts @@ -0,0 +1,2 @@ +genfscon proc /debug/fwdump u:object_r:proc_wifi_dbg:s0 +genfscon proc /debugdriver/driverdump u:object_r:proc_wifi_dbg:s0 diff --git a/sepolicy/hal_wifi.te b/sepolicy/hal_wifi.te index 3a2fa5ee..bd7ebc1a 100644 --- a/sepolicy/hal_wifi.te +++ b/sepolicy/hal_wifi.te @@ -5,3 +5,6 @@ allow hal_wifi location_data_file:sock_file write; # write to files owned by location daemon allow hal_wifi location_data_file:dir create_dir_perms; allow hal_wifi location_data_file:{ file fifo_file } create_file_perms; + +# Allow wifi hal to read debug info from the driver. +r_dir_file(hal_wifi, proc_wifi_dbg)