qubes-firewall: log errors to stderr -> syslog

Not only display as notifications (which may be easily missed).
This commit is contained in:
Marek Marczykowski-Górecki 2014-02-22 01:23:27 +01:00
parent 0d3ed747b4
commit a19ef6d0db

View File

@ -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"