In Fedora 32 and EL 8 nftables is the default firewall and does not accept : for port ranges, fixes RHBZ#1850164.

This commit is contained in:
Richard Shaw 2020-06-24 10:22:41 -05:00
commit 5f7bd2d63d

View file

@ -185,6 +185,12 @@ find -type f -exec sed -i -e '1s,^#!/usr/bin/python *,#!/usr/bin/python%{python3
# SELinux sources
cp -p %SOURCE1 %SOURCE2 %SOURCE3 .
# In Fedora 32 and EL 8 nftables is the default firewall and does not accept ":" for port ranges.
# https://bugzilla.redhat.com/show_bug.cgi?id=1850164
%if 0%{?fedora} >= 32 || 0%{?rhel} >= 8
sed -i "s/port = 0:65535/port = 0-65535/" config/jail.conf
%endif
%build
%py3_build