commit | 76b14fd28af587e27b88d65fe0b87b4bd68bc5f0 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Mon Feb 04 10:25:11 2019 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Mon Feb 04 10:25:11 2019 +0900 |
tree | c762c10d063aad9b3c89677a66f50f2a8bff23ff | |
parent | 8b25d6c7d825e160758aff6deb7652d0dcd47202 [diff] |
Call clearCallingIdentity before notifyDnsResponse The NetworkStack only expects calls from UID 1000 (system_server) or the Bluetooth app. onDnsEvent is triggered by Netd which has UID 0. One alternative would be to allow UID 0 to call the NetworkStack directly, but being more restrictive on callers sounds like a better option. Test: Flashed, booted, atest FrameworksNetTests Change-Id: Id7fb30f1e25ec70fbfbc90f3c7fc95ba18c274e6