security: Add DAC to security_drivers

Currently, if users set 'security_driver="dac"' in qemu.conf libvirtd
fails to initialize as DAC driver is not found because it is missing
in our security drivers array.
This commit is contained in:
Michal Privoznik 2012-08-24 12:36:03 +02:00
parent 239c5d7138
commit 9f9b7b85c9

View File

@ -35,6 +35,7 @@
# include "security_apparmor.h" # include "security_apparmor.h"
#endif #endif
#include "security_dac.h"
#include "security_nop.h" #include "security_nop.h"
#define VIR_FROM_THIS VIR_FROM_SECURITY #define VIR_FROM_THIS VIR_FROM_SECURITY
@ -46,6 +47,7 @@ static virSecurityDriverPtr security_drivers[] = {
#ifdef WITH_SECDRIVER_APPARMOR #ifdef WITH_SECDRIVER_APPARMOR
&virAppArmorSecurityDriver, &virAppArmorSecurityDriver,
#endif #endif
&virSecurityDriverDAC,
&virSecurityDriverNop, /* Must always be last, since it will always probe */ &virSecurityDriverNop, /* Must always be last, since it will always probe */
}; };