summaryrefslogtreecommitdiff
path: root/tests/storagevolxml2xmlout
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2016-06-01 19:21:26 -0400
committerJohn Ferlan <jferlan@redhat.com>2016-07-01 15:46:57 -0400
commit2552fec248c665f3417a5d36840555da6bbe96a4 (patch)
treea230b4d0048073744cda11dad1addf87354b7b73 /tests/storagevolxml2xmlout
parent9bbf0d7e6457e5a0668017eb8e17276f747fc9cc (diff)
downloadlibvirt-2552fec248c665f3417a5d36840555da6bbe96a4.tar.gz
encryption: Add <cipher> and <ivgen> to encryption
For a luks device, allow the configuration of a specific cipher to be used for encrypting the volume. Signed-off-by: John Ferlan <jferlan@redhat.com>
Diffstat (limited to 'tests/storagevolxml2xmlout')
-rw-r--r--tests/storagevolxml2xmlout/vol-luks-cipher.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/storagevolxml2xmlout/vol-luks-cipher.xml b/tests/storagevolxml2xmlout/vol-luks-cipher.xml
new file mode 100644
index 0000000000..901484920f
--- /dev/null
+++ b/tests/storagevolxml2xmlout/vol-luks-cipher.xml
@@ -0,0 +1,23 @@
+<volume type='file'>
+ <name>LuksDemo.img</name>
+ <key>/var/lib/libvirt/images/LuksDemo.img</key>
+ <source>
+ </source>
+ <capacity unit='bytes'>5368709120</capacity>
+ <allocation unit='bytes'>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'/>
+ <cipher name='serpent' size='256' mode='cbc' hash='sha256'/>
+ <ivgen name='plain64' hash='sha256'/>
+ </encryption>
+ </target>
+</volume>