core-admin/qubes
Marek Marczykowski-Górecki 0afee4b05e
Improve checking for netvm loop
There were many cases were the check was missing:
 - changing default_netvm
 - resetting netvm to default value
 - loading already broken qubes.xml

Since it was possible to create broken qubes.xml using legal calls, do
not reject loading such file, instead break the loop(s) by setting netvm
to None when loop is detected. This will be also useful if still not all
places are covered...

Place the check in default_netvm setter. Skip it during qubes.xml loading
(when events_enabled=False), but still keep it in setter, to _validate_ the
value before any property-* event got fired.
2017-12-05 17:39:33 +01:00
..
api api/admin: exclude regex attribute from DeviceInfo structure 2017-12-05 17:39:32 +01:00
ext api/admin: exclude regex attribute from DeviceInfo structure 2017-12-05 17:39:32 +01:00
qmemman Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
storage storage/file: move revisions_to_keep restrictions to property setter 2017-11-07 02:57:59 +01:00
tests Improve checking for netvm loop 2017-12-05 17:39:33 +01:00
tools Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
vm Improve checking for netvm loop 2017-12-05 17:39:33 +01:00
__init__.py base: fix property-(pre-)del events arguments 2017-10-21 04:05:16 +02:00
app.py Improve checking for netvm loop 2017-12-05 17:39:33 +01:00
backup.py backup: fix handling target write error (like no disk space) 2017-11-07 03:10:42 +01:00
config.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
core2migration.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
devices.py devices: clarify error on attaching non-persistent device to stopped VM 2017-10-21 04:05:16 +02:00
dochelpers.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
events.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
exc.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
firewall.py firewall: skip expired rules 2017-10-21 03:35:00 +02:00
log.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
rngdoc.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
tarwriter.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
utils.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00