aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-04-29 01:09:29 +0200
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-05-02 20:00:00 +0200
commitd43d47a9523a1338595a0c7080ab6fdfcae87688 (patch)
treef079974ec5432818fc84745c5103b57cd7a69246
parent011b6ee5e63054b8707467ccc4b790442de1657b (diff)
msm8996-common: sepolicy: Add more genfs_contexts
SELinux: Could not read /sys/devices/soc/2080000.qcom,mss/firmware/modem.mdt/power: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/2080000.qcom,mss/firmware/msadp/power: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/soc:qcom,kgsl-hyp/firmware/a530_zap.mdt/power: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/soc:qcom,kgsl-hyp/firmware/a530_zap.b02: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/2080000.qcom,mss/firmware/modem.b09/power: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/2080000.qcom,mss/firmware/modem.b10/power: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/firmware/evicted30.bin: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/firmware/bdwlan30.b00: No such file or directory.\x0a SELinux: Could not read /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/firmware/bdwlan30.bin: No such file or directory.\x0a
-rw-r--r--sepolicy/file.te4
-rw-r--r--sepolicy/genfs_contexts7
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