core-admin/qubes
Marek Marczykowski-Górecki 3cacf290bb
admin: implement admin.vm.volume.Import
Implement this in two parts:
1. Permissions checks, getting a path from appropriate storage pool
2. Actual data import

The first part is done by qubesd in a standard way, but then, instead of
accepting all the data (which may be several GB), return a path to which
a shell script (in practice: `dd` command) will write the data.
Then the script call back to qubesd again to report success/failure and
qubesd response from that call is actually returned to the user.

This way we do not pass all the data through qubesd, but still can
control the process from there in a meaningful way. Note that the last
part (second call to qubesd) may perform all kind of verification (like
a signature check on the data, or so) and can also prevent VM from
starting (hooking also domain-pre-start event) from not verified image.

QubesOS/qubes-issues#2622
2017-05-26 15:08:14 +02:00
..
api admin: implement admin.vm.volume.Import 2017-05-26 15:08:14 +02:00
ext pci: adjust PCIDeviceExtension device identifier syntax 2017-05-22 17:11:19 +02:00
qmemman qmemman: update for py3k 2017-02-27 02:37:49 +01:00
storage admin: implement admin.vm.volume.Import 2017-05-26 15:08:14 +02:00
tests admin: raise QubesNoSuchPropertyError for non-existing properties 2017-05-23 04:32:59 +02:00
tools qubesd: reduce verbosity 2017-05-23 04:47:50 +02:00
vm typo fix 2017-05-23 15:35:21 +02:00
__init__.py property: add property.__str__ 2017-05-19 18:49:21 +02:00
app.py qubes/app: don't fail on saving qubes.xml when 'qubes' group isn't there 2017-05-12 18:11:27 +02:00
backup.py backup: add a little more usage info, include docs in main index 2017-04-21 19:58:32 +02:00
config.py Remove unused helper scripts 2017-05-12 18:43:35 +02:00
core2migration.py Make pylint ♥ 2017-04-15 23:50:11 +02:00
devices.py devices: add assignment.device property 2017-05-22 03:21:07 +02:00
dochelpers.py Add documentation for mgmt 2017-03-13 21:51:52 +01:00
events.py events: add support for per-instance handlers 2017-05-12 14:25:32 +02:00
exc.py admin: raise QubesNoSuchPropertyError for non-existing properties 2017-05-23 04:32:59 +02:00
firewall.py firewall: add clone and comparing methods, missing docstrings 2017-05-16 09:05:00 +02:00
log.py qubes: port core to python3 2017-01-20 16:42:51 +01:00
rngdoc.py Make pylint happy 2017-04-21 16:57:35 +02:00
tarwriter.py Make pylint happy 2017-04-21 16:57:35 +02:00
utils.py Make pylint happy 2017-04-21 16:57:35 +02:00