security: apparmor: handle qcow2 data-file

Signed-off-by: Nikolai Barybin <nikolai.barybin@virtuozzo.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Nikolai Barybin 2024-11-20 18:48:45 +03:00 committed by Peter Krempa
parent 8fcc6c8025
commit 702f8b5a77

View 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++;
}