commit | 4658b253e6de347175008426c6ac04e5b3f0b37e | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Nov 14 23:45:05 2019 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Nov 15 01:30:11 2019 +0900 |
tree | 5d44ece1cf91d8e6141cd4d335da62b4ac814c3e | |
parent | d77eef74c7356ffd285a24bc4d837cd8bcafac4c [diff] |
Don't allow a non-empty CA certificate in production code. The caCertificate field in ResolverParamsParcel is documented as being for testing only. Because setting it could have security implications, don't allow the system server to pass it in. Bug: 144475682 Test: existing tests pass Change-Id: Ie0b826127cc48f18945a9de5f3579e47706462ee
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.