]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Add seclabels in <backingStore> to disk-backing-chains-(no)index
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 May 2022 13:10:37 +0000 (15:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jan 2023 14:31:16 +0000 (15:31 +0100)
Commit da9f3cd84b250088 added the seclabel example into the
'disk-backing-chains' case.

Since the only thing that 'disk-backing-chains' tests which
'disk-backing-chains-(no)index' don't test is the seclabel we'll be able
to remove the test case if we add the seclabel example.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxml2argvdata/disk-backing-chains-index.xml
tests/qemuxml2argvdata/disk-backing-chains-noindex.xml
tests/qemuxml2xmloutdata/disk-backing-chains-index-active.xml
tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.xml
tests/qemuxml2xmloutdata/disk-backing-chains-noindex.xml

index 9054963f1fa65cb083d6a5ab59332b29409151ed..90da6a97e9f474956dec46bc3d346e725b8adaf4 100644 (file)
           <source file='/tmp/image2'/>
           <backingStore type='file' index='6'>
             <format type='qcow2'/>
-            <source file='/tmp/image3.qcow'/>
+            <source file='/tmp/image3.qcow'>
+              <seclabel model='selinux' relabel='yes'>
+                <label>system_u:system_r:public_content_t:s0</label>
+              </seclabel>
+            </source>
             <backingStore type='file' index='5'>
               <format type='qcow2'/>
               <source file='/tmp/image4.qcow'>
index ca7dc2d2b3bdf0f2a0109b5361768ff9ff2d16dd..dc928f70752de8ee00109efeda2977c39431265b 100644 (file)
           <source file='/tmp/image2'/>
           <backingStore type='file'>
             <format type='qcow2'/>
-            <source file='/tmp/image3.qcow'/>
+            <source file='/tmp/image3.qcow'>
+              <seclabel model='selinux' relabel='yes'>
+                <label>system_u:system_r:public_content_t:s0</label>
+              </seclabel>
+            </source>
             <backingStore type='file'>
               <format type='qcow2'/>
               <source file='/tmp/image4.qcow'>
index ca7684d3b692c17f94141cad4409e77d3e8d8b88..4f30bc7111f30845ad3355a80608ae4cdd241bb3 100644 (file)
           <source file='/tmp/image2'/>
           <backingStore type='file' index='6'>
             <format type='qcow2'/>
-            <source file='/tmp/image3.qcow'/>
+            <source file='/tmp/image3.qcow'>
+              <seclabel model='selinux' relabel='yes'>
+                <label>system_u:system_r:public_content_t:s0</label>
+              </seclabel>
+            </source>
             <backingStore type='file' index='5'>
               <format type='qcow2'/>
               <source file='/tmp/image4.qcow'/>
index 74e7a74b480ac1dd9b37cc9c7a50139be993c28d..c992679b36a86a10ba1aae13d64f13872a2e19cd 100644 (file)
           <source file='/tmp/image2'/>
           <backingStore type='file'>
             <format type='qcow2'/>
-            <source file='/tmp/image3.qcow'/>
+            <source file='/tmp/image3.qcow'>
+              <seclabel model='selinux' relabel='yes'>
+                <label>system_u:system_r:public_content_t:s0</label>
+              </seclabel>
+            </source>
             <backingStore type='file'>
               <format type='qcow2'/>
               <source file='/tmp/image4.qcow'/>
index 74e7a74b480ac1dd9b37cc9c7a50139be993c28d..c992679b36a86a10ba1aae13d64f13872a2e19cd 100644 (file)
           <source file='/tmp/image2'/>
           <backingStore type='file'>
             <format type='qcow2'/>
-            <source file='/tmp/image3.qcow'/>
+            <source file='/tmp/image3.qcow'>
+              <seclabel model='selinux' relabel='yes'>
+                <label>system_u:system_r:public_content_t:s0</label>
+              </seclabel>
+            </source>
             <backingStore type='file'>
               <format type='qcow2'/>
               <source file='/tmp/image4.qcow'/>