Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04665dbf authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "ConnectivityService: Grant networkstack uid extra privileges"

parents f605363c e896c6d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;