1type wifi_logger, domain; 2type wifi_logger_exec, exec_type, vendor_file_type, file_type; 3 4userdebug_or_eng(` 5 # make transition from init to its domain 6 init_daemon_domain(wifi_logger) 7 net_domain(wifi_logger) 8 9 get_prop(wifi_logger, hwservicemanager_prop) 10 get_prop(wifi_logger, wifi_hal_prop) 11 get_prop(wifi_logger, vendor_wlan_logging_prop) 12 binder_call(wifi_logger, hwservicemanager) 13 binder_call(wifi_logger, hal_wifi_ext) 14 15 allow wifi_logger hal_wifi_ext_hwservice:hwservice_manager find; 16 allow wifi_logger wifi_logging_data_file:dir create_dir_perms; 17 allow wifi_logger wifi_logging_data_file:file create_file_perms; 18 allow wifi_logger wpa_data_file:dir r_dir_perms; 19 allow wifi_logger wpa_data_file:sock_file getattr; 20 allow wifi_logger hostapd_data_file:dir r_dir_perms; 21 allow wifi_logger hostapd_data_file:sock_file getattr; 22') 23