The virtinterfaced daemon will be responsible for providing the interface API
driver functionality. The interface driver is still loaded by the main
libvirtd daemon at this stage, so virtinterfaced must not be running at
the same time.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
.gitignore | 1 +
libvirt.spec.in | 1 +
src/interface/Makefile.inc.am | 14 ++++++++++++++
3 files changed, 16 insertions(+)
diff --git a/.gitignore b/.gitignore
index 6270a7418a..c92400b7d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -162,6 +162,7 @@
/src/util/virkeycodetable*.h
/src/util/virkeynametable*.h
/src/virt-aa-helper
+/src/virtinterfaced
/src/virtlockd
/src/virtlogd
/src/virtnetworkd
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 43f22c7858..78a9965b52 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1577,6 +1577,7 @@ exit 0
%ghost %{_sysconfdir}/libvirt/nwfilter/*.xml
%files daemon-driver-interface
+%attr(0755, root, root) %{_sbindir}/virtinterfaced
%{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
%files daemon-driver-network
diff --git a/src/interface/Makefile.inc.am b/src/interface/Makefile.inc.am
index 339a92786b..41874a0408 100644
--- a/src/interface/Makefile.inc.am
+++ b/src/interface/Makefile.inc.am
@@ -41,4 +41,18 @@ libvirt_driver_interface_la_LIBADD += $(UDEV_LIBS)
libvirt_driver_interface_la_SOURCES += $(INTERFACE_DRIVER_UDEV_SOURCES)
endif WITH_UDEV
libvirt_driver_interface_la_LIBADD += ../gnulib/lib/libgnu.la
+
+sbin_PROGRAMS += virtinterfaced
+
+virtinterfaced_SOURCES = $(REMOTE_DAEMON_SOURCES)
+virtinterfaced_CFLAGS = \
+ $(REMOTE_DAEMON_CFLAGS) \
+ -DSOCK_NAME="\"virtinterfaced-sock\"" \
+ -DSOCK_NAME_RO="\"virtinterfaced-sock-ro\"" \
+ -DSOCK_NAME_ADMIN="\"virtinterfaced-admin-sock\"" \
+ -DDAEMON_NAME="\"virtinterfaced\"" \
+ -DMODULE_NAME="\"interface\"" \
+ $(NULL)
+virtinterfaced_LDFLAGS = $(REMOTE_DAEMON_LDFLAGS)
+virtinterfaced_LDADD = $(REMOTE_DAEMON_LDADD)
endif WITH_INTERFACE
--
2.21.0