mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +03:00
Don't link nwfilter or secrets driver to libvirt.so
The nwfilter and secrets drivers are both stateful and are already linked directly to libvirtd. Linking them to libvirt.so is thus wrong, likewise exporting their symbols in libvirt.so is wrong
This commit is contained in:
parent
5830c72e15
commit
aae5cfb699
@ -1165,8 +1165,9 @@ if WITH_NWFILTER
|
||||
if WITH_DRIVER_MODULES
|
||||
mod_LTLIBRARIES += libvirt_driver_nwfilter.la
|
||||
else
|
||||
libvirt_la_BUILT_LIBADD += libvirt_driver_nwfilter.la
|
||||
noinst_LTLIBRARIES += libvirt_driver_nwfilter.la
|
||||
# Stateful, so linked to daemon instead
|
||||
#libvirt_la_BUILT_LIBADD += libvirt_driver_nwfilter.la
|
||||
endif
|
||||
libvirt_driver_nwfilter_la_CFLAGS = $(LIBPCAP_CFLAGS) \
|
||||
-I$(top_srcdir)/src/conf $(LIBNL_CFLAGS) $(AM_CFLAGS)
|
||||
@ -1182,7 +1183,8 @@ endif
|
||||
|
||||
libvirt_driver_security_la_SOURCES = $(SECURITY_DRIVER_SOURCES)
|
||||
noinst_LTLIBRARIES += libvirt_driver_security.la
|
||||
libvirt_la_BUILT_LIBADD += libvirt_driver_security.la
|
||||
# Stateful, so linked to daemon instead
|
||||
#libvirt_la_BUILT_LIBADD += libvirt_driver_security.la
|
||||
libvirt_driver_security_la_CFLAGS = \
|
||||
-I$(top_srcdir)/src/conf $(AM_CFLAGS)
|
||||
libvirt_driver_security_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
@ -1320,10 +1322,6 @@ if WITH_LIBVIRTD
|
||||
USED_SYM_FILES += libvirt_daemon.syms
|
||||
endif
|
||||
|
||||
if WITH_NWFILTER
|
||||
USED_SYM_FILES += libvirt_nwfilter.syms
|
||||
endif
|
||||
|
||||
if WITH_OPENVZ
|
||||
USED_SYM_FILES += libvirt_openvz.syms
|
||||
endif
|
||||
@ -1347,7 +1345,6 @@ EXTRA_DIST += \
|
||||
libvirt_daemon.syms \
|
||||
libvirt_linux.syms \
|
||||
libvirt_esx.syms \
|
||||
libvirt_nwfilter.syms \
|
||||
libvirt_openvz.syms \
|
||||
libvirt_qemu.syms \
|
||||
libvirt_sasl.syms \
|
||||
|
@ -1,12 +0,0 @@
|
||||
#
|
||||
# These symbols are dependent on WITH_NWFILTER.
|
||||
#
|
||||
|
||||
|
||||
# nwfilter_gentech_driver.h
|
||||
virNWFilterInstantiateFilter;
|
||||
virNWFilterTeardownFilter;
|
||||
|
||||
|
||||
# nwfilter_learnipaddr.h
|
||||
virNWFilterLookupLearnReq;
|
@ -962,37 +962,6 @@ virSecretUsageTypeTypeFromString;
|
||||
virSecretUsageTypeTypeToString;
|
||||
|
||||
|
||||
# security_driver.h
|
||||
virSecurityDriverLookup;
|
||||
|
||||
|
||||
# security_manager.h
|
||||
virSecurityManagerClearSocketLabel;
|
||||
virSecurityManagerFree;
|
||||
virSecurityManagerGenLabel;
|
||||
virSecurityManagerGetDOI;
|
||||
virSecurityManagerGetModel;
|
||||
virSecurityManagerGetProcessLabel;
|
||||
virSecurityManagerNew;
|
||||
virSecurityManagerNewStack;
|
||||
virSecurityManagerNewDAC;
|
||||
virSecurityManagerReleaseLabel;
|
||||
virSecurityManagerReserveLabel;
|
||||
virSecurityManagerRestoreImageLabel;
|
||||
virSecurityManagerRestoreAllLabel;
|
||||
virSecurityManagerRestoreHostdevLabel;
|
||||
virSecurityManagerRestoreSavedStateLabel;
|
||||
virSecurityManagerSetAllLabel;
|
||||
virSecurityManagerSetDaemonSocketLabel;
|
||||
virSecurityManagerSetImageFDLabel;
|
||||
virSecurityManagerSetImageLabel;
|
||||
virSecurityManagerSetHostdevLabel;
|
||||
virSecurityManagerSetProcessLabel;
|
||||
virSecurityManagerSetSavedStateLabel;
|
||||
virSecurityManagerSetSocketLabel;
|
||||
virSecurityManagerVerify;
|
||||
virSecurityManagerGetMountOptions;
|
||||
|
||||
# sexpr.h
|
||||
sexpr_append;
|
||||
sexpr_cons;
|
||||
|
@ -294,7 +294,8 @@ endif
|
||||
|
||||
if WITH_QEMU
|
||||
|
||||
qemu_LDADDS = ../src/libvirt_driver_qemu_impl.la
|
||||
qemu_LDADDS = ../src/libvirt_driver_qemu_impl.la \
|
||||
../src/libvirt_driver_security.la
|
||||
if WITH_NETWORK
|
||||
qemu_LDADDS += ../src/libvirt_driver_network_impl.la
|
||||
endif
|
||||
@ -519,7 +520,7 @@ virauthconfigtest_LDADD = $(LDADDS)
|
||||
|
||||
seclabeltest_SOURCES = \
|
||||
seclabeltest.c
|
||||
seclabeltest_LDADD = $(LDADDS)
|
||||
seclabeltest_LDADD = $(LDADDS) ../src/libvirt_driver_security.la
|
||||
|
||||
virbuftest_SOURCES = \
|
||||
virbuftest.c testutils.h testutils.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user