diff options
-rw-r--r-- | sepolicy/file.te | 4 | ||||
-rw-r--r-- | sepolicy/genfs_contexts | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te index 98cda48..5efa9a5 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -6,9 +6,13 @@ type sysfs_fpc_proximity, sysfs_type, fs_type; type sysfs_fpc_utouch_disable, fs_type, sysfs_type; type thermal_data_file, data_file_type, file_type; type netmgr_data_file, file_type, data_file_type; + +# /sys type sysfs_msm_subsys, sysfs_type, fs_type; type sysfs_msm_subsys_restart, sysfs_type, fs_type; type sysfs_net, sysfs_type, fs_type, mlstrustedobject; +type sysfs_pcie, sysfs_type, fs_type, mlstrustedobject; +type sysfs_wifi, sysfs_type, fs_type, mlstrustedobject; # debugfs type debugfs_kgsl, debugfs_type, fs_type; diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts index aa1c304..a59d3ed 100644 --- a/sepolicy/genfs_contexts +++ b/sepolicy/genfs_contexts @@ -1 +1,8 @@ +# sysfs +genfscon sysfs /devices/soc/600000.qcom,pcie u:object_r:sysfs_pcie:s0 +genfscon sysfs /devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0 u:object_r:sysfs_wifi:s0 +genfscon sysfs /devices/soc/2080000.qcom,mss u:object_r:sysfs_msm_subsys:s0 +genfscon sysfs /devices/soc/soc:qcom,kgsl-hyp u:object_r:sysfs_msm_subsys:s0 + +# debugfs genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0 |