Merge "hal_wifi: Allow wifi hal to access /proc/debug"

This commit is contained in:
TreeHugger Robot
2017-03-13 23:41:01 +00:00
committed by Android (Google) Code Review
3 changed files with 8 additions and 0 deletions

View File

@@ -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;

2
sepolicy/genfs_contexts Normal file
View File

@@ -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

View File

@@ -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)