VIR_DOMAIN_DEF_FORMAT_STATUS is used to include disk & network
privateData elements in the domain XML, which contain misc information
that should be available to the virt-aa-helper when generating rules.

For now, this will be used in a subsequent patch to pass tap paths to
the virt-aa-helper.

Reviewed-by: Peter Krempa <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
---
 src/security/security_apparmor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c
index e53486ee0c..a66382fbac 100644
--- a/src/security/security_apparmor.c
+++ b/src/security/security_apparmor.c
@@ -156,6 +156,7 @@ load_profile(virSecurityManager *mgr G_GNUC_UNUSED,
 
     if (virDomainDefFormatInternal(def, NULL, &buf,
                                    VIR_DOMAIN_DEF_FORMAT_SECURE |
+                                   VIR_DOMAIN_DEF_FORMAT_STATUS |
                                    VIR_DOMAIN_DEF_FORMAT_VOLUME_TRANSLATED) < 
0)
         return -1;
 

-- 
2.53.0

Reply via email to