summaryrefslogtreecommitdiff
path: root/server/InterfaceController.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-10-28 16:50:07 -0700
committerJeff Sharkey <jsharkey@android.com>2015-01-15 15:46:59 -0800
commitfbe497fcd808e4317572ad48c42545105309a347 (patch)
treeaceefeed8789d8a4145c4b467f98e10538d66f1a /server/InterfaceController.cpp
parent1a3c689be29bfbe0c7f3eb3134e9b2a2208f839c (diff)
Offer to detect non-SSL/TLS network traffic.
Introduces new module that provides network-related features for the StrictMode developer API. The first feature offers to detect sockets sending data not wrapped inside a layer of SSL/TLS encryption. This carefully only adds overhead to UIDs that have requested detection, and it uses CONNMARK to quickly accept/reject packets from streams that have already been inspected. Detection is done by looking for a well-known TLS handshake header; it's not future proof, but it's a good start. Handles both IPv4 and IPv6. When requested, we also log the triggering packet through NFLOG and back up to the framework to aid investigation. Bug: 18335678 Change-Id: Ie8fab785139dfb55a71b6dc7a0f3c75a8408224b
Diffstat (limited to 'server/InterfaceController.cpp')
0 files changed, 0 insertions, 0 deletions