Merge "ConnectivityService: Grant networkstack uid extra privileges" am: 9d450f632f am: 7fb8a1925b
am: 8b02f2a4d4
Change-Id: Ib7c3190806733244672a38822febd7f2d37195b6
This commit is contained in:
@@ -3268,7 +3268,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
final NetworkRequestInfo nri = mNetworkRequests.get(request);
|
||||
|
||||
if (nri != null) {
|
||||
if (Process.SYSTEM_UID != callingUid && nri.mUid != callingUid) {
|
||||
if (Process.SYSTEM_UID != callingUid && Process.NETWORK_STACK_UID != callingUid
|
||||
&& nri.mUid != callingUid) {
|
||||
log(String.format("UID %d attempted to %s for unowned request %s",
|
||||
callingUid, requestedOperation, nri));
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user