From 5d23e3227659bcbf252b66a7cc3361abd4d3dcfb Mon Sep 17 00:00:00 2001 From: Matus Marhefka Date: Thu, 21 Nov 2024 14:41:32 +0100 Subject: [PATCH] Update firewalld_loopback_traffic_restricted for bootable containers --- .../firewalld_loopback_traffic_restricted/bash/shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_restricted/bash/shared.sh b/linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_restricted/bash/shared.sh index 18a2e7dec68..61a8c4831a7 100644 --- a/linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_restricted/bash/shared.sh +++ b/linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_restricted/bash/shared.sh @@ -9,7 +9,7 @@ ipv4_rule='rule family=ipv4 source address="127.0.0.1" destination not address="127.0.0.1" drop' ipv6_rule='rule family=ipv6 source address="::1" destination not address="::1" drop' -if {{{ in_chrooted_environment }}}; then +if {{{ in_chrooted_environment }}} || {{{ bash_bootc_build() }}}; then firewall-offline-cmd --zone=trusted --add-rich-rule="${ipv4_rule}" firewall-offline-cmd --zone=trusted --add-rich-rule="${ipv6_rule}" elif systemctl is-active firewalld; then