core-admin/qubes/storage
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
..
__init__.py admin: implement admin.vm.volume.Import 2017-05-26 15:08:14 +02:00
domain.py qubes/storage: py3k related fixes 2017-03-01 21:50:06 +01:00
file.py storage: add Pool.import_data to the API 2017-05-23 15:35:55 +02:00
kernels.py storage: make LinuxKernel pool track vm kernel version 2017-05-17 11:17:21 +02:00
lvm.py storage: add Pool.import_data to the API 2017-05-23 15:35:55 +02:00
README.md Merge remote-tracking branch 'marmarek/master' into core3-devel 2016-03-03 01:13:51 +01:00

WNI File storage

Before v3.1 there existed a draft wni storage. You can find it in the git history

(it was in /core/storage directory, now gone)