OSDN Git Service

DO NOT MERGE Sanitize WifiConfigs
authorRobert Greenwalt <rgreenwalt@google.com>
Fri, 7 Feb 2014 11:52:12 +0000 (03:52 -0800)
committerRobert Greenwalt <rgreenwalt@google.com>
Fri, 28 Mar 2014 21:54:53 +0000 (14:54 -0700)
commite1549ae364cc368641994f478959b8736a183f8e
treef9580826313035c3b0258066f3c795942dff8f69
parent86f9a93e20bf33b9f5152592f4781bd253be8643
DO NOT MERGE Sanitize WifiConfigs

Do this both on input from apps (giving error) and between wifi and
ConnectivityService (ignoring bad data).  This means removing all
addresses beyond the first and all routes but the first default and
the implied direct-connect routes.

We do this because the user can't monitor the others (no UI), their
support wasn't intended, they allow redirection of all traffic
without user knowledge and they allow circumvention of legacy VPNs.

This should not move forward from JB as it breaks IPv6 and K has
a more resilient VPN.

Bug:12663469
Change-Id: I80912cc08ffa1e4b63008c94630006cf316e7a64
core/java/android/net/LinkProperties.java
services/java/com/android/server/WifiService.java
wifi/java/android/net/wifi/WifiConfiguration.java
wifi/java/android/net/wifi/WifiStateMachine.java