mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
9bbf0d7e64
Add parse and format of the luks/passphrase secret including tests for volume XML parsing. Signed-off-by: John Ferlan <jferlan@redhat.com>
22 lines
560 B
XML
22 lines
560 B
XML
<volume>
|
|
<name>LuksDemo.img</name>
|
|
<key>/var/lib/libvirt/images/LuksDemo.img</key>
|
|
<source>
|
|
</source>
|
|
<capacity unit="G">5</capacity>
|
|
<allocation>294912</allocation>
|
|
<target>
|
|
<path>/var/lib/libvirt/images/LuksDemo.img</path>
|
|
<format type='luks'/>
|
|
<permissions>
|
|
<mode>0644</mode>
|
|
<owner>0</owner>
|
|
<group>0</group>
|
|
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
|
</permissions>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' usage='mumblyfratz'/>
|
|
</encryption>
|
|
</target>
|
|
</volume>
|