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;

hal_client_domain(hal_audio_default, hal_power)

userdebug_or_eng(`
  allow hal_audio diag_device:chr_file rw_file_perms;
')