diff options
| author | Chenbo Feng <fengc@google.com> | 2017-12-04 17:25:19 -0800 |
|---|---|---|
| committer | Chenbo Feng <fengc@google.com> | 2018-01-11 19:06:58 -0800 |
| commit | 116d05553da82c68ae76144a9f6472ae6f8a3c1a (patch) | |
| tree | be9407288cd5f7a59a3cd810a346bfac4025c494 /server/NetworkController.cpp | |
| parent | be33bd53062cd5a7f6fa9d840d22f3a74351b326 (diff) | |
Use netlink listener to track destroyed socket
Add a netlink SkDestroyListener in TrafficController to listen to the
broadcast from kernel when a inet socket get destroyed. The broadcast
message contains the socket cookie of the destroyed socket and
TrafficController uses it to remove the tag/uid information stored
inside cookieTagMap if the process that create and tag the socket forget
to untag it before closing the socket.
Bug: 30950746
Test: Rewrite NativeQtaguidTest.cpp to support eBPF module.
Change-Id: I46d5067c38bc3ecd6cd96db364c3897db25b4e10
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions
