sdm845-common: sepolicy: Add FOD related rules

Change-Id: I8fd985bf4eab1747351f9e717cc33fa6d5ab1517
This commit is contained in:
LuK1337
2019-07-14 21:23:15 +02:00
committed by Łukasz Patron
parent 9061ea5381
commit b7b20467fa
7 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
type hal_fod_sdm845, coredomain, domain;
hal_server_domain(hal_fod_sdm845, hal_lineage_fod)
type hal_fod_sdm845_exec, exec_type, file_type;
init_daemon_domain(hal_fod_sdm845)
# Allow binder communication with hal_display_default
binder_call(hal_fod_sdm845, hal_display_default)
# Allow binder communication with hal_fingerprint
binder_call(hal_fod_sdm845, hal_fingerprint)
# Allow hal_fod_sdm845 to hal_display_hwservice
allow hal_fod_sdm845 hal_display_hwservice:hwservice_manager find;
# Allow hal_fod_sdm845 to hal_fingerprint_hwservice
allow hal_fod_sdm845 hal_fingerprint_hwservice:hwservice_manager find;
# Allow hal_fod_sdm845 to read and write to sysfs_fod
allow hal_fod_sdm845 sysfs_fod:file rw_file_perms;