mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
security: apparmor: Make storage_source_add_files recursively callable
This will simplify adding support for qcow2 external data_file Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
b2b003db74
commit
3a15c47253
@ -939,9 +939,9 @@ add_file_path(virStorageSourcePtr src,
|
||||
|
||||
static int
|
||||
storage_source_add_files(virStorageSourcePtr src,
|
||||
virBufferPtr buf)
|
||||
virBufferPtr buf,
|
||||
size_t depth)
|
||||
{
|
||||
size_t depth = 0;
|
||||
virStorageSourcePtr tmp;
|
||||
|
||||
for (tmp = src; virStorageSourceIsBacking(tmp); tmp = tmp->backingStore) {
|
||||
@ -994,7 +994,7 @@ get_files(vahControl * ctl)
|
||||
|
||||
/* XXX should handle open errors more careful than just ignoring them.
|
||||
*/
|
||||
if (storage_source_add_files(disk->src, &buf) < 0)
|
||||
if (storage_source_add_files(disk->src, &buf, 0) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user