qubes_netwatcher: expand a note about NETCFG untrusted origin

This commit is contained in:
Rafal Wojtczuk 2011-05-09 16:26:48 +02:00
parent 5923741c83
commit 748369c8ad

View File

@ -15,6 +15,8 @@ while true; do
if [[ -n "$NET_DOMID" ]] && [[ $NET_DOMID -gt 0 ]]; then
UNTRUSTED_NETCFG=$(/usr/bin/xenstore-read /local/domain/$NET_DOMID/qubes_netvm_external_ip)
# UNTRUSTED_NETCFG is not parsed in any way
# thus, no sanitization ready
# but be careful when passing it to other shell scripts
if [[ "$UNTRUSTED_NETCFG" != "$CURR_NETCFG" ]]; then
/sbin/service qubes_firewall stop
/sbin/service qubes_firewall start