]> git.ipfire.org Git - thirdparty/strongswan.git/commit
child-create: Add support to handle security labels
authorTobias Brunner <tobias@strongswan.org>
Wed, 2 Feb 2022 09:40:16 +0000 (10:40 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2022 16:42:01 +0000 (18:42 +0200)
commitf9b895b49f4911adf12de73bb4e4abd6f9d5dbb2
tree2c23018fd20b62adda5865b50af1518f2bdb3faf
parent7a8d110863e2398aa5743fe767c7b6d7d5495f56
child-create: Add support to handle security labels

With SELinux and without a specific label from an acquire, we abort
establishing the CHILD_SA (for the first one we prefer a childless IKE_SA,
but since that's a separate extension, we fall back to letting the initial
CHILD_SA fail as we won't propose a label).

If trap policies are not installed already (e.g. because it's impossible to
do so like as responder for roadwarriors), this will require installing
them dynamically once the IKE_SA is established.
src/libcharon/sa/ikev2/tasks/child_create.c
src/libcharon/sa/ikev2/tasks/child_create.h