ikev2: Add option to prefer childless IKE_SAs as initiator

This commit is contained in:
Tobias Brunner
2023-02-22 13:19:46 +01:00
parent 4784c92c55
commit 1efdb0f791
5 changed files with 25 additions and 15 deletions
+2 -1
View File
@@ -1044,7 +1044,8 @@ static status_t defer_child_sa(private_child_create_t *this)
/* with SELinux, we prefer not to create a CHILD_SA when we only have
* the generic label available. if the peer does not support it,
* creating the SA will most likely fail */
if (policy == CHILDLESS_FORCE ||
if (policy == CHILDLESS_PREFER ||
policy == CHILDLESS_FORCE ||
generic_label_only(this))
{
return NEED_MORE;