# cdsprpcd daemon
type cdsprpcd, domain;
type cdsprpcd_exec, exec_type, vendor_file_type, file_type;

# Started by init
init_daemon_domain(cdsprpcd)

# For reading dir/files on /dsp
r_dir_file(cdsprpcd, adsprpcd_file)

allow cdsprpcd qdsp_device:chr_file r_file_perms;
allow cdsprpcd ion_device:chr_file r_file_perms;

r_dir_file(cdsprpcd, sysfs_devfreq)
allow cdsprpcd sysfs_devfreq_l3cdsp:dir r_dir_perms;
allow cdsprpcd sysfs_devfreq_l3cdsp:file rw_file_perms;