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:
parent
319a8c9b18
commit
047b2f6abd
3 changed files with 4 additions and 0 deletions
1
generic/vendor/common/device.te
vendored
1
generic/vendor/common/device.te
vendored
|
@ -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
1
generic/vendor/common/file_contexts
vendored
Executable file → Normal 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
|
||||
|
|
2
generic/vendor/common/hal_audio_default.te
vendored
2
generic/vendor/common/hal_audio_default.te
vendored
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue