From c1f1728736e3e75d11d646ad385a0334934401c2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 19 Apr 2019 04:51:38 +0000 Subject: [PATCH] fix reading host.fw through IPCC interface IPCC has no knowledge about FUSE based links, but we used 'local/host.fw' here, where local is always a link to 'nodes//', this works only when using the common file system interface provided by FUSE, but not if we're talking directly with our memdb file store through IPCC.. So use a nodename based path here, to avoid getting just empty strings for host.fw. fixes commit 0dbef53046fade02efec143d3b7a0f4f9021b618 Signed-off-by: Thomas Lamprecht --- src/PVE/Firewall.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 2108567..1607b74 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -23,7 +23,6 @@ use PVE::SafeSyslog; use PVE::Tools qw($IPV4RE $IPV6RE); use PVE::Tools qw(run_command lock_file dir_glob_foreach); -my $hostfw_conf_filename = "/etc/pve/local/host.fw"; my $pvefw_conf_dir = "/etc/pve/firewall"; my $clusterfw_conf_filename = "$pvefw_conf_dir/cluster.fw"; @@ -127,6 +126,7 @@ eval { }; my $nodename = PVE::INotify::nodename(); +my $hostfw_conf_filename = "/etc/pve/nodes/$nodename/host.fw"; my $pve_fw_lock_filename = "/var/lock/pvefw.lck"; -- 2.39.2