qubes-firewall: log errors to stderr -> syslog
Not only display as notifications (which may be easily missed).
This commit is contained in:
parent
0d3ed747b4
commit
a19ef6d0db
@ -41,6 +41,7 @@ while true; do
|
|||||||
for i in $(xenstore-list qubes-iptables-domainrules) ; do
|
for i in $(xenstore-list qubes-iptables-domainrules) ; do
|
||||||
RULES=$(/usr/bin/xenstore-read qubes-iptables-domainrules/"$i")
|
RULES=$(/usr/bin/xenstore-read qubes-iptables-domainrules/"$i")
|
||||||
ERRS=`echo -e "$RULES" | /sbin/iptables-restore -n 2>&1 || true`
|
ERRS=`echo -e "$RULES" | /sbin/iptables-restore -n 2>&1 || true`
|
||||||
|
echo "Failed applying rules for $i: $ERRS" >&2
|
||||||
OUT="$OUT$ERRS"
|
OUT="$OUT$ERRS"
|
||||||
done
|
done
|
||||||
/usr/bin/xenstore-write $XENSTORE_ERROR "$OUT"
|
/usr/bin/xenstore-write $XENSTORE_ERROR "$OUT"
|
||||||
|
Loading…
Reference in New Issue
Block a user