Fix policy leak by deleting forwarding security policies
Fix the policy leak by deleting forwarding policies when deleting the IPsec tunnel interface. Bug: 254566085 Test: atest IpSecServiceParameterizedTest (new tests added) Change-Id: I29dd4810abb978fe886776b2fbacdfc74325436d
This commit is contained in:
@@ -859,6 +859,13 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
mIkey,
|
||||
0xffffffff,
|
||||
mIfId);
|
||||
mNetd.ipSecDeleteSecurityPolicy(
|
||||
mUid,
|
||||
selAddrFamily,
|
||||
IpSecManager.DIRECTION_FWD,
|
||||
mIkey,
|
||||
0xffffffff,
|
||||
mIfId);
|
||||
}
|
||||
} catch (ServiceSpecificException | RemoteException e) {
|
||||
Log.e(
|
||||
|
||||
Reference in New Issue
Block a user