Merge "sepolicy: Add support for touch AOI and touch wakeup"

This commit is contained in:
qctecmdr 2019-06-07 21:11:23 -07:00 committed by Gerrit - the friendly Code Review server
commit 29da6714d6
3 changed files with 5 additions and 0 deletions

View file

@ -41,6 +41,7 @@ type ssgtzd_socket, file_type, mlstrustedobject;
type qfp-daemon_data_file, file_type, data_file_type;
type persist_qti_fp_file, file_type, vendor_persist_type;
type sysfs_touch_aoi, fs_type, sysfs_type;
# QDMA data files
type vendor_qdma_data_file, file_type, data_file_type;

View file

@ -26,6 +26,7 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
genfscon sysfs /devices/virtual/npu/msm_npu/pwr u:object_r:sysfs_npu:s0
genfscon sysfs /devices/virtual/fts/touch_aoi u:object_r:sysfs_touch_aoi:s0
genfscon proc /asound/card0/state u:object_r:proc_audiod:s0
genfscon proc /asound/cards u:object_r:proc_audiod:s0
genfscon sysfs /module/msm_thermal/core_control/cpus_offlined u:object_r:sysfs_mpctl:s0

View file

@ -35,6 +35,9 @@ init_daemon_domain(qfp-daemon)
allow qfp-daemon qfp-daemon_data_file:dir { rw_dir_perms setattr };
allow qfp-daemon qfp-daemon_data_file:file create_file_perms;
allow qfp-daemon sysfs_touch_aoi:dir r_dir_perms;
allow qfp-daemon sysfs_touch_aoi:file rw_file_perms;
# Access to tee_device
allow qfp-daemon tee_device:chr_file rw_file_perms;