r_dir_file(hal_audio_default, sysfs_soc) | |
allow hal_audio_default audio_vendor_data_file:dir rw_dir_perms; | |
allow hal_audio_default audio_vendor_data_file:file create_file_perms; | |
dontaudit hal_audio_default perfd:unix_stream_socket connectto; | |
dontaudit hal_audio_default perfd_socket:sock_file write; | |
hal_client_domain(hal_audio_default, hal_power) | |
userdebug_or_eng(` | |
allow hal_audio diag_device:chr_file rw_file_perms; | |
') |