1type qti, domain; 2type qti_exec, exec_type, vendor_file_type, file_type; 3 4init_daemon_domain(qti) 5net_domain(qti) 6 7allow qti sysfs_soc:dir search; 8allow qti sysfs_soc:file r_file_perms; 9 10allow qti smd_device:chr_file { read write }; 11allow qti rmnet_device:chr_file rw_file_perms; 12 13allow qti self:socket create_socket_perms; 14allowxperm qti self:socket ioctl msm_sock_ipc_ioctls; 15 16r_dir_file(qti, sysfs_msm_subsys) 17 18userdebug_or_eng(` 19 allow qti diag_device:chr_file rw_file_perms; 20 r_dir_file(qti, sysfs_diag) 21 allow qti sysfs_timestamp_switch:file r_file_perms; 22') 23dontaudit qti diag_device:chr_file rw_file_perms; 24dontaudit qti sysfs_diag:dir search; 25