mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
The secret driver is stateful, link it directly to libvirtd
All other stateful drivers are linked directly to libvirtd instead of libvirt.so. Link the secret driver to libvirtd too. * daemon/Makefile.am: link the secret driver to libvirtd * daemon/libvirtd.c: add #ifdef WITH_SECRETS blocks * src/Makefile.am: don't link the secret driver to libvirt.so * src/libvirt_private.syms: remove the secretRegister symbol
This commit is contained in:
parent
f7e5ca90e6
commit
a26d2628c0
@ -110,6 +110,10 @@ endif
|
|||||||
if WITH_NODE_DEVICES
|
if WITH_NODE_DEVICES
|
||||||
libvirtd_LDADD += ../src/libvirt_driver_nodedev.la
|
libvirtd_LDADD += ../src/libvirt_driver_nodedev.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if WITH_SECRETS
|
||||||
|
libvirtd_LDADD += ../src/libvirt_driver_secret.la
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libvirtd_LDADD += ../src/libvirt.la
|
libvirtd_LDADD += ../src/libvirt.la
|
||||||
|
@ -93,8 +93,10 @@
|
|||||||
#ifdef WITH_NODE_DEVICES
|
#ifdef WITH_NODE_DEVICES
|
||||||
#include "node_device/node_device_driver.h"
|
#include "node_device/node_device_driver.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_SECRETS
|
||||||
#include "secret/secret_driver.h"
|
#include "secret/secret_driver.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __sun
|
#ifdef __sun
|
||||||
@ -880,7 +882,9 @@ static struct qemud_server *qemudInitialize(void) {
|
|||||||
#if defined(WITH_NODE_DEVICES)
|
#if defined(WITH_NODE_DEVICES)
|
||||||
nodedevRegister();
|
nodedevRegister();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_SECRETS
|
||||||
secretRegister();
|
secretRegister();
|
||||||
|
#endif
|
||||||
#ifdef WITH_QEMU
|
#ifdef WITH_QEMU
|
||||||
qemuRegister();
|
qemuRegister();
|
||||||
#endif
|
#endif
|
||||||
|
@ -598,7 +598,8 @@ if WITH_DRIVER_MODULES
|
|||||||
mod_LTLIBRARIES += libvirt_driver_secret.la
|
mod_LTLIBRARIES += libvirt_driver_secret.la
|
||||||
else
|
else
|
||||||
noinst_LTLIBRARIES += libvirt_driver_secret.la
|
noinst_LTLIBRARIES += libvirt_driver_secret.la
|
||||||
libvirt_la_LIBADD += libvirt_driver_secret.la
|
# Stateful, so linked to daemon instead
|
||||||
|
#libvirt_la_LIBADD += libvirt_driver_secret.la
|
||||||
endif
|
endif
|
||||||
libvirt_driver_secret_la_CFLAGS = \
|
libvirt_driver_secret_la_CFLAGS = \
|
||||||
-I@top_srcdir@/src/conf
|
-I@top_srcdir@/src/conf
|
||||||
|
@ -453,8 +453,6 @@ virSecretDefParseString;
|
|||||||
virSecretDefParseFile;
|
virSecretDefParseFile;
|
||||||
virSecretDefFormat;
|
virSecretDefFormat;
|
||||||
|
|
||||||
# secret_driver.h
|
|
||||||
secretRegister;
|
|
||||||
|
|
||||||
# security.h
|
# security.h
|
||||||
virSecurityDriverVerify;
|
virSecurityDriverVerify;
|
||||||
|
Loading…
Reference in New Issue
Block a user