sepolicy: Add SE policy to allow audio HAL

Add sepolicy to have access to /dev/msm_adsp_sleepmon.
Policy added in hal_audio_default.

Change-Id: I764ca2f0b6bff0536382803fd250e9e7efa61f65
This commit is contained in:
Bavyasritha Alahari 2021-07-19 16:11:05 +05:30
parent 319a8c9b18
commit 047b2f6abd
3 changed files with 4 additions and 0 deletions

View file

@ -101,3 +101,4 @@ type vendor_qce_device, dev_type;
type vendor_npu_device, dev_type;
type vendor_qmcs_block_device, dev_type;
type vendor_qdss_device, dev_type;
type vendor_adsp_sleepmon_device, dev_type;

1
generic/vendor/common/file_contexts vendored Executable file → Normal file
View file

@ -78,6 +78,7 @@
/dev/ipa_odl_ctl u:object_r:vendor_ipa_dev:s0
/dev/ipa_adpl u:object_r:vendor_ipa_dev:s0
/dev/byte-cntr u:object_r:vendor_qdss_device:s0
/dev/msm_adsp_sleepmon u:object_r:vendor_adsp_sleepmon_device:s0
# dev socket nodes
/dev/socket/chre u:object_r:vendor_chre_socket:s0

View file

@ -29,6 +29,8 @@ userdebug_or_eng(`
allow hal_audio vendor_diag_device:chr_file rw_file_perms;
')
allow hal_audio vendor_adsp_sleepmon_device:chr_file rw_file_perms;
hal_client_domain(hal_audio_default, vendor_hal_perf)
hal_client_domain(hal_audio_default, hal_power)