Added event logging for some spoofed DNS queries.

Change-Id: I40909306e8cf922f1dd5a5685db89f732a709794
This commit is contained in:
Geremy Condra 2012-06-08 21:06:33 -07:00
parent 76656afc6d
commit 524c87c61c
1 changed files with 9 additions and 0 deletions

View File

@ -1144,6 +1144,9 @@ retry:
* XXX - potential security hazard could
* be detected here.
*/
#ifdef ANDROID_CHANGES
__libc_android_log_event_uid(BIONIC_EVENT_RESOLVER_OLD_RESPONSE);
#endif
DprintQ((statp->options & RES_DEBUG) ||
(statp->pfcode & RES_PRF_REPLY),
(stdout, ";; old answer:\n"),
@ -1157,6 +1160,9 @@ retry:
* XXX - potential security hazard could
* be detected here.
*/
#ifdef ANDROID_CHANGES
__libc_android_log_event_uid(BIONIC_EVENT_RESOLVER_WRONG_SERVER);
#endif
DprintQ((statp->options & RES_DEBUG) ||
(statp->pfcode & RES_PRF_REPLY),
(stdout, ";; not our server:\n"),
@ -1187,6 +1193,9 @@ retry:
* XXX - potential security hazard could
* be detected here.
*/
#ifdef ANDROID_CHANGES
__libc_android_log_event_uid(BIONIC_EVENT_RESOLVER_WRONG_QUERY);
#endif
DprintQ((statp->options & RES_DEBUG) ||
(statp->pfcode & RES_PRF_REPLY),
(stdout, ";; wrong query name:\n"),