]> git.ipfire.org Git - thirdparty/strongswan.git/commit
child-sa: Allocate a new reqid if dynamic traffic selectors are updated
authorTobias Brunner <tobias@strongswan.org>
Thu, 3 Feb 2022 16:10:46 +0000 (17:10 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2022 16:42:01 +0000 (18:42 +0200)
commit8f4cfe96691e7cff55f9c9c5d2b55ee242f94551
tree8485ee2e23ecde06014d10589ecd409f2424967a
parent96ecc39cd00f90175209606ebeabb8f7185afb1c
child-sa: Allocate a new reqid if dynamic traffic selectors are updated

If update_sa() is called and dynamic traffic selectors are changed using
new addresses, this might cause issues if we continue to use a reqid that
doesn't match the updated traffic selectors.  For instance, if the initiator
then uses make-before-break reauth from the new IP.  It's also a particular
problem in the SELinux case where multiple CHILD_SAs with specific labels
all share the same (trap) policy with generic label.  However, SAs created
after the update would not match due to the new reqid.
src/libcharon/sa/child_sa.c