fdsan: add types for Java sockets.

Test: art/tools/run-libcore-tests.sh
Change-Id: If61211bc4ae225c3f89db989a167f9dc4fce375a
This commit is contained in:
Josh Gao 2018-09-07 12:46:02 -07:00
parent 431d2ff141
commit d527cf1f99
2 changed files with 10 additions and 0 deletions

View file

@ -249,6 +249,10 @@ const char* android_fdsan_get_tag_type(uint64_t tag) {
return "sqlite";
case ANDROID_FDSAN_OWNER_TYPE_ART_FDFILE:
return "ART FdFile";
case ANDROID_FDSAN_OWNER_TYPE_DATAGRAMSOCKETIMPL:
return "DatagramSocketImpl";
case ANDROID_FDSAN_OWNER_TYPE_SOCKETIMPL:
return "SocketImpl";
case ANDROID_FDSAN_OWNER_TYPE_GENERIC_00:
default:

View file

@ -114,6 +114,12 @@ enum android_fdsan_owner_type {
/* ART FdFile */
ANDROID_FDSAN_OWNER_TYPE_ART_FDFILE = 9,
/* java.net.DatagramSocketImpl */
ANDROID_FDSAN_OWNER_TYPE_DATAGRAMSOCKETIMPL = 10,
/* java.net.SocketImpl */
ANDROID_FDSAN_OWNER_TYPE_SOCKETIMPL = 11,
};
/*