kumquat-buildroot/package/firewalld/Config.in

41 lines
1.8 KiB
Plaintext
Raw Normal View History

package/firewalld: new package Firewalld provides a dynamically managed firewall with support for network or firewall zones to define the trust level of network connections or interfaces. Items of note: - Setting PYTHON="/usr/bin/env python$(PYTHON3_VERSION_MAJOR)" prevents Firewalld from setting the shebang in the installed python files to the full path to the python interpreter used when building. - The bundled provided SYSV init file has several bashisms and requires /etc/init.d/functions which buildroot doesn't provide. So instead, a more simple init.d file is provided in the package directory, which does not require bash. - Firewalld >= 1.0.0 requires a linux kernel version of 5.3 or later. Because Buildroot does not have a mechanism to detect what version a user is compiling if the kernel is external, there is no way to prevent a user with an external kernel older than 5.3 to select this package. - To run, Firewalld requires enabling almost every single nftables option in the kernel menuconfig. Indeed for a regular user, this task is quite a time-consuming operation, and missing even one required nftables option results in firewalld failing to start. Through a mix of trial and error and talking to the upstream developers, the package selects the minimum amount of kernel options required for runtime. Understandably the list is daunting. However, these options have passed run-time tests with kernel 5.3 (the minimum kernel version required) and kernel 6.2.10 (the latest kernel version as of this commit log.) As such, it is safe to say these options will work for anybody wanting to use firewalld with a supported kernel version of 5.3 or higher. Signed-off-by: Adam Duskett <aduskett@gmail.com> [Thomas: - select python3 instead of depending on it - fixup Config.in comment - rely on NLS support by autotools-package] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-06-04 04:52:04 +02:00
config BR2_PACKAGE_FIREWALLD
bool "firewalld"
depends on BR2_USE_MMU # gobject-introspection, python3, python-gobject
depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
depends on BR2_USE_WCHAR # glib2, dbus-python, nftables, python3
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gobject-introspection
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-python, python3
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
depends on BR2_TOOLCHAIN_USES_GLIBC # gobject-introspection
depends on BR2_HOST_GCC_AT_LEAST_8 # gobject-introspection
depends on !BR2_STATIC_LIBS # python3
select BR2_PACKAGE_DBUS # dbus-python
select BR2_PACKAGE_DBUS_PYTHON
select BR2_PACKAGE_GOBJECT_INTROSPECTION
select BR2_PACKAGE_JANSSON # Uses the nftables json interface
select BR2_PACKAGE_NFTABLES
select BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_GOBJECT
help
Firewalld provides a dynamically managed firewall with
support for network or firewall zones to define the trust
level of network connections or interfaces. It has support
for IPv4, IPv6 firewall settings and for ethernet bridges and
a separation of runtime and permanent configuration options.
It also provides an interface for services or applications to
add ip*tables and ebtables rules directly.
Note: Firewalld uses nftables as the backend and requires
kernel version >= 5.3.
https://github.com/firewalld/firewalld
comment "firewalld needs a glibc toolchain w/ wchar, dynamic library, headers >= 3.12, gcc >= 4.9, host gcc >= 8"
depends on BR2_USE_MMU
depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_USES_GLIBC || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \
!BR2_USE_WCHAR || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
!BR2_HOST_GCC_AT_LEAST_8 || BR2_STATIC_LIBS