dre: sepolicy: Fix flashlight

Change-Id: I95ebf14ffaae81b28204505d23ee448213c23bea
This commit is contained in:
Albert Tang 2022-06-13 19:34:36 -05:00
parent 0d269abc59
commit d736c9340f
3 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,7 @@ type opf_file, file_type;
# procfs # procfs
type proc_direct_swappiness, fs_type, proc_type; type proc_direct_swappiness, fs_type, proc_type;
type proc_flash_light_file, fs_type, proc_type;
type proc_swappiness, fs_type, proc_type; type proc_swappiness, fs_type, proc_type;
type proc_touchpanel, fs_type, proc_type; type proc_touchpanel, fs_type, proc_type;
type proc_watermark_boost_factor, fs_type, proc_type; type proc_watermark_boost_factor, fs_type, proc_type;

View file

@ -1,4 +1,5 @@
# procfs # procfs
genfscon proc /qcom_flash u:object_r:proc_flash_light_file:s0
genfscon proc /touchpanel u:object_r:proc_touchpanel:s0 genfscon proc /touchpanel u:object_r:proc_touchpanel:s0
# sysfs # sysfs

View file

@ -13,6 +13,7 @@ allow hal_camera_default input_device:dir r_dir_perms;
allow hal_camera_default input_device:chr_file r_file_perms; allow hal_camera_default input_device:chr_file r_file_perms;
allow hal_camera_default proc_meminfo:file r_file_perms; allow hal_camera_default proc_meminfo:file r_file_perms;
allow hal_camera_default proc_flash_light_file:file rw_file_perms;
allow hal_camera_default sysfs_ois_control:dir r_dir_perms; allow hal_camera_default sysfs_ois_control:dir r_dir_perms;
allow hal_camera_default sysfs_ois_control:file rw_file_perms; allow hal_camera_default sysfs_ois_control:file rw_file_perms;