summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-19 20:45:47 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:49:34 +0300
commit4f576a0beea712233e362bd9c4c44fe510573997 (patch)
treec1e88dead7433cad9a63eb2e3603a9c466227995
parent148caa8b2bab20d695d6472beabb4d749bc24bfc (diff)
sdm660-common: sepolicy: Label new TP node
Change-Id: Id55db9b6614320650c8c61e698f71ddc9f04d086
-rw-r--r--sepolicy/vendor/file.te2
-rw-r--r--sepolicy/vendor/genfs_contexts2
-rw-r--r--sepolicy/vendor/hal_power_default.te2
3 files changed, 3 insertions, 3 deletions
diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te
index 7015eff..c9eeaf7 100644
--- a/sepolicy/vendor/file.te
+++ b/sepolicy/vendor/file.te
@@ -1,5 +1,5 @@
type debugfs_wlan, debugfs_type, fs_type;
type ir_dev_file, file_type;
-type proc_dt2w, fs_type, proc_type;
+type sysfs_touchpanel, fs_type, sysfs_type;
type fingerprint_sysfs, fs_type, sysfs_type;
type thermal_data_file, file_type, data_file_type;
diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts
index 8da8baa..59d0cbe 100644
--- a/sepolicy/vendor/genfs_contexts
+++ b/sepolicy/vendor/genfs_contexts
@@ -1,4 +1,4 @@
-genfscon proc /wake_node u:object_r:proc_dt2w:s0
+genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0
genfscon debugfs /wlan0 u:object_r:debugfs_wlan:s0
# sysfs
diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te
index 2df04b0..6ecf0a0 100644
--- a/sepolicy/vendor/hal_power_default.te
+++ b/sepolicy/vendor/hal_power_default.te
@@ -1,2 +1,2 @@
-allow hal_power_default proc_dt2w:file rw_file_perms;
+allow hal_power_default sysfs_touchpanel:file rw_file_perms;
r_dir_file(hal_power_default, debugfs_wlan)