[PATCH 3/6] authz: support formating authz to xml

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

 



support formating vmdef's authz devices to xml
<authz mode='%s' index='%d' identity='%s'/>

Signed-off-by: Zihao Chang <changzihao1@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index d547a93e16cd..540f1706fd23 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -28950,6 +28950,12 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
             return -1;
     }
 
+    for (n = 0; n < def->nauthzs; n++) {
+        if (virDomainAuthzDefFormat(buf, def->authzs[n]) < 0)
+            return -1;
+
+    }
+
     for (n = 0; n < def->ngraphics; n++) {
         if (virDomainGraphicsDefFormat(buf, def->graphics[n], flags) < 0)
             return -1;
-- 
2.28.0





[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