aboutsummaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorOndrej Hlavac <hlavaco@gmail.com>2017-03-25 11:48:09 +0100
committerdd3boh <dade.garberi@gmail.com>2017-07-13 10:09:47 +0200
commitbe70b922efe0dc4727aa323c94e00f61d5b13643 (patch)
tree45202629d4b64f61b43cbd0f86d6089f84fa85b9 /sepolicy
parent481aab22e15246195978af672aee3c260a64bae8 (diff)
z2_plus: Fix KeyDisabler
- fix path in cmhw - change permissions on boot for sysfs - add selinux rule for sysfs
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file.te1
-rw-r--r--sepolicy/file_contexts1
-rw-r--r--sepolicy/system_server.te1
3 files changed, 3 insertions, 0 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 27942cb..1ba40c1 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -2,6 +2,7 @@ type fpc_data_file, file_type;
type fpc_images_file, file_type;
type sysfs_fpc_irq, sysfs_type, fs_type;
type sysfs_fpc_proximity, sysfs_type, fs_type;
+type sysfs_fpc_utouch_disable, fs_type, sysfs_type;
type proc_touchpanel, fs_type;
type nv_data_file, file_type;
type proc_stat, fs_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 844cbaf..979f833 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -14,6 +14,7 @@
/data/fpc_images(/.*)? u:object_r:fpc_images_file:s0
/sys/devices/soc/soc:fpc_fpc1020/irq u:object_r:sysfs_fpc_irq:s0
/sys/devices/soc/soc:fpc_fpc1020/proximity_state u:object_r:sysfs_fpc_proximity:s0
+/sys/devices/soc/soc:fpc1020/utouch_disable u:object_r:sysfs_fpc_utouch_disable:s0
/dev/dash u:object_r:input_device:s0
/sys/devices/soc/.*ssusb/power_supply/usb(/.*)? u:object_r:sysfs_usb_supply:s0
diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te
index e9c07c8..64cdc0a 100644
--- a/sepolicy/system_server.te
+++ b/sepolicy/system_server.te
@@ -5,6 +5,7 @@ allow system_server sensors_persist_file:file r_file_perms;
allow system_server sensors_persist_file:dir search;
allow system_server proc_stat:file r_file_perms;
allow system_server unlabeled:file unlink;
+allow system_server sysfs_fpc_utouch_disable:file rw_file_perms;
get_prop(system_server, diag_prop);
allow system_server diag_device:chr_file { read write };
allow system_server drmserver:process setsched;