1type hal_wifi_ext, domain; 2hal_server_domain(hal_wifi_ext, hal_wifi) 3 4type hal_wifi_ext_exec, exec_type, vendor_file_type, file_type; 5init_daemon_domain(hal_wifi_ext) 6 7# Allow to start the IWifi:wifi_ext service 8add_hwservice(hal_wifi_ext, hal_wifi_ext_hwservice); 9add_service(hal_wifi_ext, hal_wifi_ext_service) 10 11# Allow to set up bridged interface 12allowxperm hal_wifi_ext self:udp_socket ioctl { SIOCBRADDBR SIOCBRDELBR SIOCBRADDIF SIOCBRDELIF}; 13 14userdebug_or_eng(` 15 allow hal_wifi_ext wifi_logging_data_file:dir rw_dir_perms; 16 allow hal_wifi_ext wifi_logging_data_file:file create_file_perms; 17') 18