From be70b922efe0dc4727aa323c94e00f61d5b13643 Mon Sep 17 00:00:00 2001 From: Ondrej Hlavac Date: Sat, 25 Mar 2017 11:48:09 +0100 Subject: z2_plus: Fix KeyDisabler - fix path in cmhw - change permissions on boot for sysfs - add selinux rule for sysfs --- sepolicy/file.te | 1 + sepolicy/file_contexts | 1 + sepolicy/system_server.te | 1 + 3 files changed, 3 insertions(+) (limited to 'sepolicy') 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; -- cgit v1.2.3