diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-05-25 12:15:38 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-06-10 10:45:35 +0200 |
commit | ebeaac1f2bd9caf6e886e9de2d639e02cd0eba78 (patch) | |
tree | ebadcc155d162187edebc39be5a03fe86f943108 /src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c | |
parent | 471b907613326de0b446a5c493a99b8f51a1ab53 (diff) | |
download | strongswan-ebeaac1f2bd9caf6e886e9de2d639e02cd0eba78.tar.bz2 strongswan-ebeaac1f2bd9caf6e886e9de2d639e02cd0eba78.tar.xz |
kernel-netlink: Let only a single thread work on a specific policy
Other threads are free to add/update/delete other policies.
This tries to prevent race conditions caused by releasing the mutex while
sending messages to the kernel. For instance, if break-before-make
reauthentication is used and one thread on the responder is delayed in
deleting the policies that another thread is concurrently adding for the
new SA. This could have resulted in no policies being installed
eventually.
Fixes #1400.
Diffstat (limited to 'src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c')
0 files changed, 0 insertions, 0 deletions