]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
security: apparmor: handle qcow2 data-file
authorNikolai Barybin <nikolai.barybin@virtuozzo.com>
Wed, 20 Nov 2024 15:48:45 +0000 (18:48 +0300)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Nov 2024 21:31:18 +0000 (22:31 +0100)
Signed-off-by: Nikolai Barybin <nikolai.barybin@virtuozzo.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/security/virt-aa-helper.c

index 067a17f331b72474539d5cace585b0a809b4021f..e82b5de2b4cae7a8817901124e8497a0e8709e3b 100644 (file)
@@ -877,6 +877,10 @@ storage_source_add_files(virStorageSource *src,
         if (add_file_path(tmp, depth, buf) < 0)
             return -1;
 
+        if (tmp->dataFileStore &&
+            add_file_path(tmp->dataFileStore, depth, buf) < 0)
+            return -1;
+
         depth++;
     }