sepolicy: readd meizupshelper rules

This commit is contained in:
Mister Oyster 2017-05-01 01:19:08 +02:00
parent 21d38e24ee
commit 0bc35b648b
2 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,7 @@
/sys/block/mmcblk0/queue/scheduler u:object_r:perf_control_sysfs:s0
/sys/devices/.*/queue/scheduler u:object_r:perf_control_sysfs:s0
/sys/devices/platform/mx-gs/gesture_control u:object_r:smartwake_sysfs:s0
/sys/class/meizu/ps/ps_calibration u:object_r:meizu_ps_calibration_trigger:s0
# Config/Runtime files
/data/agps_supl(/.*)? u:object_r:agpsd_data_file:s0

10
sepolicy/meizupshelper.te Normal file
View File

@ -0,0 +1,10 @@
# meizupshelper
type meizu_ps_calibration_trigger, file_type;
type meizupshelper_exec, exec_type, file_type;
type meizupshelper, domain;
init_daemon_domain(meizupshelper)
allow meizu_ps_calibration_trigger sysfs:filesystem { associate };
allow ueventd meizu_ps_calibration_trigger:file { getattr };
allow meizupshelper self:capability { dac_override };
allow meizupshelper meizu_ps_calibration_trigger:file { rw_file_perms };