diff options
author | junyulai <junyulai@google.com> | 2019-04-16 19:32:32 +0800 |
---|---|---|
committer | junyulai <junyulai@google.com> | 2019-04-23 10:47:19 +0800 |
commit | cecd4a3d64a0fc6006c133ab2a35be44f5d6fb4b (patch) | |
tree | aa5fdd54e71d8afd0c16aca993adcadab45a67f0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 1f55cbf416a15e477d678663d38868b5d11d02e9 (diff) |
[KA11] Verify fd ownership and allocate resource for NattKeepalive
Since socket keepalive APIs for UDP encapsulation sockets are
public to generic app. In order to ensure the given fd is valid,
this change verifies the resource id inside the UDP
encapsulation socket by using methods provided by IpSecService.
Bug: 125517194
Fix: 123968920
Test: 1. atest FrameworksNetTests --generate-new-metrics 10
2. atestcom.android.server.ConnectivityServiceTest \
#testNattSocketKeepalives --generate-new-metrics 100
Change-Id: I408aacc19b364683854d15a095c34e72389a6e5b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions