mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/strongswan: add option to specify paths to PID and UNIX socket files
Strongswan allows to specify a path for PID and UNIX socket files at compile time via the --with-piddir argument. This is especially useful when Strongswan is running inside a container where we may not want to share/mount the default path of /var/run inside the container. Let's add an option to configure the piddir. Considering this is a critical path, let's add a default value to the string option (which is currently the same as strongswan's default when the option is missing) so that it is stable across strongswan releases in Buildroot. Signed-off-by: Martin Elshuber <martin.elshuber@theobroma-systems.com> [Quentin: rewriting of commit title and commit log] Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
1d3ec1fc7f
commit
d96ddedb4c
@@ -63,6 +63,16 @@ config BR2_PACKAGE_STRONGSWAN_WOLFSSL
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config BR2_PACKAGE_STRONGSWAN_PIDDIR
|
||||||
|
string "piddir"
|
||||||
|
default "/var/run"
|
||||||
|
help
|
||||||
|
Path for PID and UNIX socket files used by strongswan.
|
||||||
|
|
||||||
|
Use the empty string to not pass --with-piddir to strongswan
|
||||||
|
configure, this then defaults to strongswan's source default
|
||||||
|
which may not be stable across releases.
|
||||||
|
|
||||||
config BR2_PACKAGE_STRONGSWAN_AF_ALG
|
config BR2_PACKAGE_STRONGSWAN_AF_ALG
|
||||||
bool "Enable AF_ALG crypto interface to Linux Crypto API"
|
bool "Enable AF_ALG crypto interface to Linux Crypto API"
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ ifeq ($(BR2_PACKAGE_STRONGSWAN_DROP_CAPS),y)
|
|||||||
STRONGSWAN_CONF_OPTS += --with-capabilities=libcap
|
STRONGSWAN_CONF_OPTS += --with-capabilities=libcap
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# setup piddir if BR2_PACKAGE_STRONGSWAN_PIDDIR is not empty
|
||||||
|
STRONGSWAN_CONF_OPTS += $(if $(call qstrip,$(BR2_PACKAGE_STRONGSWAN_PIDDIR)),--with-piddir=$(BR2_PACKAGE_STRONGSWAN_PIDDIR))
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_STRONGSWAN_NONROOT),y)
|
ifeq ($(BR2_PACKAGE_STRONGSWAN_NONROOT),y)
|
||||||
STRONGSWAN_CONF_OPTS += \
|
STRONGSWAN_CONF_OPTS += \
|
||||||
--with-user=charon \
|
--with-user=charon \
|
||||||
|
|||||||
Reference in New Issue
Block a user