commit | c3239859e01a2570808aded1ddb9ef2e63168622 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Fri Jul 24 17:30:16 2020 +0800 |
committer | Ken Chen <cken@google.com> | Mon Aug 24 21:49:40 2020 +0800 |
tree | 70d04dcf67a466b2bb97bac4f7d0ef909a18e5af | |
parent | 957333d2a99861bc9e01a96605a6de1f4ea4cabd [diff] |
Check security context in CA certificate injection For binder clients trying to inject CA certificates, DNS resolver not only checks its uid, but also security context. The purpose of these is to reduce the possibility of certificate injection being misused except for tests. Bug: 162055050 Test: atest resolv_integration_test:ResolverTest#PermissionCheckOnCertificateInjection Change-Id: I75bcf852d147b72c9045ec15ed3cb9684579fe3c
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.