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