Commit 7648e40da50e added support for dbus chardev but forgot to handle it in
AppArmor code.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
Pushed under the build-breaker rule.
src/security/security_apparmor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c
index 55c019394050..008384dee8c2 100644
--- a/src/security/security_apparmor.c
+++ b/src/security/security_apparmor.c
@@ -1022,6 +1022,7 @@ AppArmorSetChardevLabel(virSecurityManager *mgr,
case VIR_DOMAIN_CHR_TYPE_SPICEVMC:
case VIR_DOMAIN_CHR_TYPE_NMDM:
case VIR_DOMAIN_CHR_TYPE_QEMU_VDAGENT:
+ case VIR_DOMAIN_CHR_TYPE_DBUS:
case VIR_DOMAIN_CHR_TYPE_LAST:
ret = 0;
break;
@@ -1085,6 +1086,7 @@ AppArmorSetNetdevLabel(virSecurityManager *mgr,
case VIR_DOMAIN_CHR_TYPE_SPICEVMC:
case VIR_DOMAIN_CHR_TYPE_NMDM:
case VIR_DOMAIN_CHR_TYPE_QEMU_VDAGENT:
+ case VIR_DOMAIN_CHR_TYPE_DBUS:
case VIR_DOMAIN_CHR_TYPE_LAST:
ret = 0;
break;
--
2.35.1