From 702f8b5a7779c050a2a1294bdd6615fda3e71906 Mon Sep 17 00:00:00 2001 From: Nikolai Barybin Date: Wed, 20 Nov 2024 18:48:45 +0300 Subject: [PATCH] security: apparmor: handle qcow2 data-file Signed-off-by: Nikolai Barybin Reviewed-by: Peter Krempa --- src/security/virt-aa-helper.c | 4 ++++ 1 file changed, 4 insertions(+) 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++; }