mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
239c5d7138
commit
9f9b7b85c9
@ -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 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user