commit | 6a9603a1877cba1561d91eb04ed879c7bcdd2bdd | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Jul 30 21:21:46 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Fri Jul 31 12:12:36 2020 +0800 |
tree | 11958fc840f4154f1085f7c8972c8533fa2a20a4 | |
parent | 96b09e2e84832148c252b373a6b5897cce9240ed [diff] |
Fchown DNS query socket with AID_DNS when sdk version < 30 Add original fchown functionality back for Q which is setting socket owner as AID_DNS. Also add a unit test for fchown. Test: atest Bug: 161509097 Change-Id: I7385144f7c268e8a4b118029f6fb4948aeba36b1
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.