1type perfd, domain; 2type perfd_exec, exec_type, file_type; 3 4init_daemon_domain(perfd) 5 6# Data file accesses. 7allow perfd perfd_data_file:dir create_dir_perms; 8allow perfd perfd_data_file:file create_file_perms; 9 10# Socket creation under /data/misc/perfd 11allow perfd perfd_data_file:sock_file create_file_perms; 12 13allow perfd sysfs_performance:dir search; 14allow perfd sysfs_performance:file rw_file_perms; 15 16allow perfd sysfs_thermal:dir search; 17allow perfd sysfs_thermal:file rw_file_perms; 18 19allow perfd proc_kernel_sched:file rw_file_perms; 20 21# allow writing to /sys/devices/system/cpu/* 22allow perfd sysfs_devices_system_cpu:file rw_file_perms; 23 24# access to /sys/module/lpm_levels/parameters/sleep_disabled 25allow perfd sysfs_power_management:file w_file_perms; 26