# driver at the same time, for this use a list of names separated by
# comma and delimited by square brackets. For example:
#
-# security_driver = [ "selinux", "dac" ]
+# security_driver = [ "selinux", "apparmor" ]
+#
+# Note: The DAC security driver is always enabled.
#
#security_driver = "selinux"
char **names;
virSecurityManagerPtr mgr = NULL;
virSecurityManagerPtr stack = NULL;
- bool hasDAC = false;
- if (driver->securityDriverNames) {
+ if (driver->securityDriverNames &&
+ driver->securityDriverNames[0]) {
names = driver->securityDriverNames;
while (names && *names) {
- if (STREQ("dac", *names))
- hasDAC = true;
-
if (!(mgr = virSecurityManagerNew(*names,
QEMU_DRIVER_NAME,
driver->allowDiskFormatProbing,
mgr = NULL;
}
- if (!hasDAC && driver->privileged) {
+ if (driver->privileged) {
if (!(mgr = virSecurityManagerNewDAC(QEMU_DRIVER_NAME,
driver->user,
driver->group,