mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
security: apparmor: Label externalDataStore
Teach virt-aa-helper how to label a qcow2 data_file, tracked internally as externalDataStore. It should be treated the same as its sibling disk image Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
22e7997d0c
commit
b9a055a409
@ -918,6 +918,10 @@ storage_source_add_files(virStorageSourcePtr src,
|
||||
if (add_file_path(tmp, depth, buf) < 0)
|
||||
return -1;
|
||||
|
||||
if (tmp->externalDataStore &&
|
||||
storage_source_add_files(tmp->externalDataStore, buf, depth) < 0)
|
||||
return -1;
|
||||
|
||||
depth++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user