sm8250-common: sepolicy: label dt-gesture and allow power/sensor hal access

pstar uses the touchscreen_mmi via stmicro_mmi driver
this is a partial revert of
376db816f6
This commit is contained in:
SGCMarkus 2022-02-20 17:19:44 +01:00
parent d1def81471
commit 31398f7cdc
4 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ type fsg_file, file_type, contextmount_type, vendor_file_type;
# Power # Power
type proc_sched_lib_mask_cpuinfo, proc_type, fs_type; type proc_sched_lib_mask_cpuinfo, proc_type, fs_type;
type vendor_sysfs_dt2w, fs_type, sysfs_type;
# Touchscreen # Touchscreen
type vendor_sysfs_touchpanel, fs_type, sysfs_type; type vendor_sysfs_touchpanel, fs_type, sysfs_type;

View File

@ -26,6 +26,7 @@ genfscon proc /hw
# PowerHal # PowerHal
genfscon proc /sys/kernel/sched_lib_name u:object_r:proc_sched_lib_mask_cpuinfo:s0 genfscon proc /sys/kernel/sched_lib_name u:object_r:proc_sched_lib_mask_cpuinfo:s0
genfscon proc /sys/kernel/sched_lib_mask_force u:object_r:proc_sched_lib_mask_cpuinfo:s0 genfscon proc /sys/kernel/sched_lib_mask_force u:object_r:proc_sched_lib_mask_cpuinfo:s0
genfscon sysfs /devices/virtual/input/input[0-9]/dt-gesture/enable u:object_r:vendor_sysfs_dt2w:s0
# RTC # RTC
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm8150@0:qcom,pm8150_rtc/rtc/rtc0 u:object_r:sysfs_rtc:s0 genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm8150@0:qcom,pm8150_rtc/rtc/rtc0 u:object_r:sysfs_rtc:s0

View File

@ -1,2 +1,4 @@
allow hal_power_default vendor_sysfs_touchpanel:dir search; allow hal_power_default vendor_sysfs_touchpanel:dir search;
allow hal_power_default vendor_sysfs_touchpanel:file rw_file_perms; allow hal_power_default vendor_sysfs_touchpanel:file rw_file_perms;
allow hal_power_default vendor_sysfs_dt2w:dir search;
allow hal_power_default vendor_sysfs_dt2w:{ file lnk_file } rw_file_perms;

View File

@ -3,3 +3,6 @@ allow hal_sensors_default vendor_sysfs_laser:file { setattr rw_file_perms };
allow hal_sensors_default vendor_sysfs_input:dir r_dir_perms; allow hal_sensors_default vendor_sysfs_input:dir r_dir_perms;
allow hal_sensors_default vendor_sysfs_input:file rw_file_perms; allow hal_sensors_default vendor_sysfs_input:file rw_file_perms;
allow hal_sensors_default vendor_sysfs_dt2w:dir r_dir_perms;
allow hal_sensors_default vendor_sysfs_dt2w:file rw_file_perms;