1type sensors, domain; 2type sensors_exec, exec_type, vendor_file_type, file_type; 3init_daemon_domain(sensors) 4 5# For QCOM diag port access 6userdebug_or_eng(` 7 allow sensors diag_device:chr_file rw_file_perms; 8') 9allow sensors persist_file:dir search; 10allow sensors mnt_vendor_file:dir search; 11allow sensors self:qipcrtr_socket create; 12allow sensors sensors_persist_file:dir rw_dir_perms; 13r_dir_file(sensors, sysfs_msm_subsys) 14allow sensors sysfs_ssr:file r_file_perms; 15allow sensors sensors_vendor_data_file:dir rw_dir_perms; 16allow sensors sensors_vendor_data_file:file create_file_perms; 17 18dontaudit sensors sysfs_esoc:dir r_dir_perms; 19