[PATCH 5/9] qemu: add qemuSecurityUpdateImageLabel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peng Liang <liangpeng10@xxxxxxxxxx>
---
 src/qemu/qemu_security.c | 10 ++++++++++
 src/qemu/qemu_security.h |  5 +++++
 2 files changed, 15 insertions(+)

diff --git a/src/qemu/qemu_security.c b/src/qemu/qemu_security.c
index e582a66071a1..eb211a9b0c4c 100644
--- a/src/qemu/qemu_security.c
+++ b/src/qemu/qemu_security.c
@@ -188,6 +188,16 @@ qemuSecurityMoveImageMetadata(virQEMUDriver *driver,
 }
 
 
+int
+qemuSecurityUpdateImageLabel(virQEMUDriver *driver,
+                             virDomainObj *vm,
+                             virStorageSource *src)
+{
+    return virSecurityManagerUpdateImageLabel(driver->securityManager, vm->def,
+                                              src, 0);
+}
+
+
 int
 qemuSecuritySetHostdevLabel(virQEMUDriver *driver,
                             virDomainObj *vm,
diff --git a/src/qemu/qemu_security.h b/src/qemu/qemu_security.h
index 4c3d81e4b5e2..ac4acc583264 100644
--- a/src/qemu/qemu_security.h
+++ b/src/qemu/qemu_security.h
@@ -49,6 +49,11 @@ int qemuSecurityMoveImageMetadata(virQEMUDriver *driver,
                                   virStorageSource *src,
                                   virStorageSource *dst);
 
+int
+qemuSecurityUpdateImageLabel(virQEMUDriver *driver,
+                             virDomainObj *vm,
+                             virStorageSource *src);
+
 int qemuSecuritySetHostdevLabel(virQEMUDriver *driver,
                                 virDomainObj *vm,
                                 virDomainHostdevDef *hostdev);
-- 
2.31.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux