Temporarily disable admin API

Don't listen on the admin socket in the daemon and comment out the
admin devel files out of specfile.

Library is still being compiled and installed in order to link easily
without any disturbing modifications to the daemon code.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2015-06-26 17:26:29 +02:00 committed by Daniel Veillard
parent 886eb3c787
commit 1bcc88bbdd
5 changed files with 11 additions and 11 deletions

View File

@ -50,7 +50,7 @@ EXTRA_DIST = \
$(XML_EXAMPLES) $(XML_EXAMPLES)
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc
NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
$(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \ $(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \

View File

@ -522,7 +522,8 @@ daemonSetupNetworking(virNetServerPtr srv,
virNetServerAddService(srv, svcRO, NULL) < 0) virNetServerAddService(srv, svcRO, NULL) < 0)
goto cleanup; goto cleanup;
if (sock_path_adm) { /* Temporarily disabled */
if (sock_path_adm && false) {
VIR_DEBUG("Registering unix socket %s", sock_path_adm); VIR_DEBUG("Registering unix socket %s", sock_path_adm);
if (!(svcAdm = virNetServerServiceNewUNIX(sock_path_adm, if (!(svcAdm = virNetServerServiceNewUNIX(sock_path_adm,
unix_sock_adm_mask, unix_sock_adm_mask,

View File

@ -136,8 +136,7 @@ apidir = $(pkgdatadir)/api
api_DATA = \ api_DATA = \
libvirt-api.xml \ libvirt-api.xml \
libvirt-qemu-api.xml \ libvirt-qemu-api.xml \
libvirt-lxc-api.xml \ libvirt-lxc-api.xml
libvirt-admin-api.xml
fig = \ fig = \
libvirt-net-logical.fig \ libvirt-net-logical.fig \
@ -157,7 +156,7 @@ EXTRA_DIST= \
hacking1.xsl hacking2.xsl wrapstring.xsl \ hacking1.xsl hacking2.xsl wrapstring.xsl \
$(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \ $(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \
$(devhelphtml) $(devhelppng) $(devhelpcss) $(devhelpxsl) \ $(devhelphtml) $(devhelppng) $(devhelpcss) $(devhelpxsl) \
$(xml) $(qemu_xml) $(lxc_xml) $(admin_xml) $(fig) $(png) $(css) \ $(xml) $(qemu_xml) $(lxc_xml) $(fig) $(png) $(css) \
$(patches) $(dot_php_in) $(dot_php_code_in) $(dot_php)\ $(patches) $(dot_php_in) $(dot_php_code_in) $(dot_php)\
$(internals_html_in) $(internals_html) \ $(internals_html_in) $(internals_html) \
sitemap.html.in aclperms.htmlinc \ sitemap.html.in aclperms.htmlinc \

View File

@ -34,9 +34,10 @@ virinc_HEADERS = libvirt.h \
libvirt-qemu.h \ libvirt-qemu.h \
virterror.h virterror.h
virinc_HEADERS += libvirt-admin.h
install-exec-hook: install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(virincdir) $(mkinstalldirs) $(DESTDIR)$(virincdir)
EXTRA_DIST = libvirt.h.in EXTRA_DIST = libvirt.h.in
# Temporarily disabled, but we need it for building
EXTRA_DIST += libvirt-admin.h

View File

@ -1560,6 +1560,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la
%endif %endif
# Temporarily get rid of not-installed libvirt-admin.so
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-admin.so
%if %{with_network} %if %{with_network}
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/ install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
# We don't want to install /etc/libvirt/qemu/networks in the main %files list # We don't want to install /etc/libvirt/qemu/networks in the main %files list
@ -2287,7 +2290,6 @@ exit 0
%{_libdir}/libvirt.so %{_libdir}/libvirt.so
%{_libdir}/libvirt-qemu.so %{_libdir}/libvirt-qemu.so
%{_libdir}/libvirt-lxc.so %{_libdir}/libvirt-lxc.so
%{_libdir}/libvirt-admin.so
%dir %{_includedir}/libvirt %dir %{_includedir}/libvirt
%{_includedir}/libvirt/virterror.h %{_includedir}/libvirt/virterror.h
%{_includedir}/libvirt/libvirt.h %{_includedir}/libvirt/libvirt.h
@ -2304,17 +2306,14 @@ exit 0
%{_includedir}/libvirt/libvirt-stream.h %{_includedir}/libvirt/libvirt-stream.h
%{_includedir}/libvirt/libvirt-qemu.h %{_includedir}/libvirt/libvirt-qemu.h
%{_includedir}/libvirt/libvirt-lxc.h %{_includedir}/libvirt/libvirt-lxc.h
%{_includedir}/libvirt/libvirt-admin.h
%{_libdir}/pkgconfig/libvirt.pc %{_libdir}/pkgconfig/libvirt.pc
%{_libdir}/pkgconfig/libvirt-qemu.pc %{_libdir}/pkgconfig/libvirt-qemu.pc
%{_libdir}/pkgconfig/libvirt-lxc.pc %{_libdir}/pkgconfig/libvirt-lxc.pc
%{_libdir}/pkgconfig/libvirt-admin.pc
%dir %{_datadir}/libvirt/api/ %dir %{_datadir}/libvirt/api/
%{_datadir}/libvirt/api/libvirt-api.xml %{_datadir}/libvirt/api/libvirt-api.xml
%{_datadir}/libvirt/api/libvirt-qemu-api.xml %{_datadir}/libvirt/api/libvirt-qemu-api.xml
%{_datadir}/libvirt/api/libvirt-lxc-api.xml %{_datadir}/libvirt/api/libvirt-lxc-api.xml
%{_datadir}/libvirt/api/libvirt-admin-api.xml
%doc docs/*.html docs/html docs/*.gif %doc docs/*.html docs/html docs/*.gif