From: Nikolai Barybin Date: Wed, 20 Nov 2024 15:48:45 +0000 (+0300) Subject: security: apparmor: handle qcow2 data-file X-Git-Tag: v10.10.0-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=702f8b5a7779c050a2a1294bdd6615fda3e71906;p=thirdparty%2Flibvirt.git security: apparmor: handle qcow2 data-file Signed-off-by: Nikolai Barybin Reviewed-by: Peter Krempa --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 067a17f331..e82b5de2b4 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -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++; }