msm8953-common: Address laser denials

based https://github.com/LineageOS/android_device_motorola_griffin
This commit is contained in:
jeangraff30
2021-03-11 21:07:16 -03:00
parent eb816e2712
commit 6167b5e618
5 changed files with 26 additions and 0 deletions

12
sepolicy/vendor/mmi-laser-sh.te vendored Normal file
View File

@@ -0,0 +1,12 @@
type mmi-laser-sh, domain;
type mmi-laser-sh_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(mmi-laser-sh)
allow mmi-laser-sh kmsg_device:chr_file { write open };
allow mmi-laser-sh persist_file:dir { search open read getattr };
allow mmi-laser-sh persist_file:file { open read getattr };
allow mmi-laser-sh vendor_shell_exec:file { entrypoint read getattr };
allow mmi-laser-sh sysfs:file { write getattr open };
allow mmi-laser-sh vendor_toolbox_exec:file { execute execute_no_trans getattr open read };
allow mmi-laser-sh mnt_vendor_file:file { getattr open read };
allow mmi-laser-sh mnt_vendor_file:dir search;