1type wcnss_service, domain; 2type wcnss_service_exec, exec_type, vendor_file_type, file_type; 3 4init_daemon_domain(wcnss_service) 5net_domain(wcnss_service) 6vndbinder_use(wcnss_service) 7 8allow wcnss_service self:qipcrtr_socket create_socket_perms_no_ioctl; 9allow wcnss_service self:netlink_generic_socket create_socket_perms_no_ioctl; 10 11# For Peripheral Manager in cnss-daemon 12binder_call(wcnss_service, vendor_per_mgr) 13allow wcnss_service vendor_per_mgr_service:service_manager find; 14 15# pkt logging for cnss_diag 16userdebug_or_eng(` 17 r_dir_file(wcnss_service, proc_wifi_dbg) 18 allow wcnss_service cnss_vendor_data_file:dir create_dir_perms; 19 allow wcnss_service cnss_vendor_data_file:file create_file_perms; 20') 21 22# files in /sys 23r_dir_file(wcnss_service, sysfs_msm_subsys) 24r_dir_file(wcnss_service, sysfs_soc) 25r_dir_file(wcnss_service, sysfs_ssr) 26r_dir_file(wcnss_service, sysfs_esoc) 27r_dir_file(wcnss_service, sysfs_net) 28 29# Not enable cnss_cli in S5 30dontaudit wcnss_service kernel:system module_request; 31