OSDN Git Service

Use AF_INET sockets when checking netIds in setNetworkFor{Process,Resolv}().
authorSreeram Ramachandran <sreeram@google.com>
Sat, 31 May 2014 02:59:51 +0000 (19:59 -0700)
committerSreeram Ramachandran <sreeram@google.com>
Mon, 2 Jun 2014 16:21:03 +0000 (09:21 -0700)
commit2756045bebaac342f7cb70dad11519f896d44833
tree806f652c8fe7aefa1f9fc47ea87a0f7e1601fb20
parentac19883dd50d5310d1fddf996ee227075a103ecb
Use AF_INET sockets when checking netIds in setNetworkFor{Process,Resolv}().

AF_UNIX sockets don't need to be marked, so we don't give netd the permission to
operate on them (cf: netd.te). I.e., netd doesn't expect to receive them.

Make sure that the creation of the AF_INET socket doesn't trigger another
wasteful check with netd by calling the libc version directly.

Bug: 13885501
Change-Id: I6b549232e57cacd47501edcefa4c0b4b79df9da0
client/NetdClient.cpp