Add Network security watchlist service
Network security watchlist service is a service to monitor all potential harmful network traffic. By setting a network watchlist, any connections that visit any site from watchlist will be logged. Logs will be aggregated everyday and encoded using differential privacy before exporting it from framework. This feature is disabled now, run "setprop ro.network_watchlist_enabled true" to enable it. All network events are handled in an async bg thread, it should not cause any delay in netd. Also, it uses the hooks in enterprise network logging, so we can run netd_benchmark to measure the impact to netd. Here are the things not included in this CL: - ConfigUpdater to get and set watchlist - Differential privacy encoding logic and reporting - CTS - Memory and performance optimization for internal watchlist data structure Test: manual - turn on the feature, hard code a watchlist xml, process that visited that domain is being logged in sqlite. Test: run netd_benchmark - seems no obvious performance change. Test: bit FrameworksCoreTests:android.net.NetworkWatchlistManagerTests Test: runtest frameworks-net Test: runtest frameworks-services -p com.android.server.net.watchlist Bug: 63908748 Change-Id: I09595178bac0070a867bc5e0501a7bf2c840e398
Loading
Please register or sign in to comment