device_lenovo_sdm710-common/sepolicy/vendor/hal_audio_default.te
Ashwin R C ec1d9ed563
sepolicy: Allow hal_audio_default to read audio_device
audio_hw_primary: pcm_open_prepare_helper: cannot open device '/dev/snd/pcmC0D0p': Permission denied

Change-Id: I8fb7ec2c269fca6b8bf21aacf521990e9279418d
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00

14 lines
520 B
Text

# Allow access to the HALs
hal_client_domain(hal_audio_default, hal_sensors)
# Allow binder communication with hal_sensors_default
binder_call(hal_audio_default, hal_sensors_default)
# Allow hal_audio_default to find hal_sensors_hwservice
allow hal_audio_default hal_sensors_hwservice:hwservice_manager find;
# Allow hal_audio_default to read audio_device
allow hal_audio_default audio_device:dir r_dir_perms;
# Allow hal_audio_default to read files in mnt_vendor_file
r_dir_file(hal_audio_default, mnt_vendor_file)