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 13userdebug_or_eng(` 14 allow qti diag_device:chr_file rw_file_perms; 15') 16 17allow qti self:socket create_socket_perms; 18allowxperm qti self:socket ioctl msm_sock_ipc_ioctls; 19 20r_dir_file(qti, sysfs_msm_subsys) 21 22dontaudit qti kernel:system module_request; 23