From a19ef6d0db808073d0d307302fb2acf786a244ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 22 Feb 2014 01:23:27 +0100 Subject: [PATCH] qubes-firewall: log errors to stderr -> syslog Not only display as notifications (which may be easily missed). --- network/qubes-firewall | 1 + 1 file changed, 1 insertion(+) diff --git a/network/qubes-firewall b/network/qubes-firewall index ca30560..2efaeb5 100755 --- a/network/qubes-firewall +++ b/network/qubes-firewall @@ -41,6 +41,7 @@ while true; do for i in $(xenstore-list qubes-iptables-domainrules) ; do RULES=$(/usr/bin/xenstore-read qubes-iptables-domainrules/"$i") ERRS=`echo -e "$RULES" | /sbin/iptables-restore -n 2>&1 || true` + echo "Failed applying rules for $i: $ERRS" >&2 OUT="$OUT$ERRS" done /usr/bin/xenstore-write $XENSTORE_ERROR "$OUT"