Repository navigation
v0.3.9
shorewall-nft 0.3.9 adds glob includes for configuration fragments and clears two SELinux issues on enforcing systems.
Fragment includes
?INCLUDE_GLOB reads every regular file matching a pattern, in sorted order, relative to the including file. It resolves the glob in Python, never a shell, so a configuration cannot run commands while it compiles. For a managed configuration migrating from legacy Shorewall, the exact SHELL cat <glob> form is accepted as a narrow bridge to the same behaviour, and every other SHELL command is refused. Thanks to Stefan Schlesinger (sts) for the implementation (#37).
SELinux: script copying
Copying a compiled firewall script (saving a ruleset, reverting, or keeping the previous one) no longer carries the source file's SELinux context, which was denied on an enforcing system such as Rocky Linux 9. The copy preserves the contents and the executable mode and lets the target take its own context. Thanks to Peter Gross (pgross4740) for the fix (#36).
SELinux: capability probing
The capability probe loads a test ruleset in a throwaway namespace to learn what the local nft and kernel support. It now makes a plain network namespace when it runs as root, rather than a user namespace, so it no longer trips the SELinux cap_userns denial that an enforcing system logged on every start. It falls back to a user namespace only for an unprivileged or restricted root. An optional SELinux policy module for stricter setups is in progress. Thanks to Peter Gross (pgross4740) for the report and diagnosis (#38).
Contributors
Dave Kempe, Peter Gross (pgross4740) and Stefan Schlesinger (sts).