TunnelManager: disable dangerous intents for now

We need to think about how to allow this securely. It's not okay for all
apps to be allowed to twiddle with VPN settings.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-06-04 04:51:10 +02:00
parent a2ccbf003c
commit c4e32328fc

View File

@ -284,6 +284,12 @@ public final class TunnelManager extends BaseObservable {
return; return;
} }
/* We disable the below, for now, as the security model of allowing this
* might take a bit more consideration.
*/
if (true)
return;
final State state; final State state;
if ("com.wireguard.android.action.SET_TUNNEL_UP".equals(action)) if ("com.wireguard.android.action.SET_TUNNEL_UP".equals(action))
state = State.UP; state = State.UP;