type adsprpcd, domain;
type adsprpcd_exec, exec_type, vendor_file_type, file_type;

init_daemon_domain(adsprpcd)

allow adsprpcd ion_device:chr_file r_file_perms;
allow adsprpcd qdsp_device:chr_file r_file_perms;

allow adsprpcd system_file:dir r_dir_perms;

r_dir_file(adsprpcd, adsprpcd_file)

allow adsprpcd sysfs_soc:dir search;
allow adsprpcd sysfs_soc:file r_file_perms;

allow adsprpcd persist_file:dir r_dir_perms;
allow adsprpcd persist_sensors_file:dir create_dir_perms;
allow adsprpcd persist_sensors_file:file create_file_perms;
allow adsprpcd mnt_vendor_file:dir r_dir_perms;