dre: sepolicy: Fix flashlight
Change-Id: I95ebf14ffaae81b28204505d23ee448213c23bea
This commit is contained in:
parent
0d269abc59
commit
d736c9340f
3 changed files with 3 additions and 0 deletions
1
sepolicy/vendor/file.te
vendored
1
sepolicy/vendor/file.te
vendored
|
@ -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;
|
||||||
|
|
1
sepolicy/vendor/genfs_contexts
vendored
1
sepolicy/vendor/genfs_contexts
vendored
|
@ -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
|
||||||
|
|
1
sepolicy/vendor/hal_camera_default.te
vendored
1
sepolicy/vendor/hal_camera_default.te
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue