From nobody Sun Feb 8 16:49:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1562861167; cv=none; d=zoho.com; s=zohoarc; b=JkVqypzJBao7AQMetQhRktoSV/HiAdpD484o+Hvhi+hEmK6T7jY2tlIe8dgERoDDu0HpdKpK+lAGTdZH+xZcw4KMjLzcxgDadZrNXL5bYNOKTekm4JlPxveS30sD7L+0Ardk75gUMEjB5PCa0KxqToHpDwuXmd7b4EgzxugGbOE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562861167; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=hhWL5+vcrK9EmccagISzgFm7wQDhwTSkkRq/XrhQEoU=; b=hfkQ88CS4IWE2C2wrQq27ef0R73POzNk/LAbM092Fwa8ZLYJdUPD9PDZQmpBqdjkVEy7fV+1W/4QDeIehtPoqumC4d2NRsKd8fO6hRR0dbrIgxQYatiCPD8AUotqXHWGpj37edkBT7XtMVO3qpDQMUdyU7IB0LtzLPPYV8mjLYA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1562861167629998.266044453672; Thu, 11 Jul 2019 09:06:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D3B9430C132B; Thu, 11 Jul 2019 16:06:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8DEE360A9F; Thu, 11 Jul 2019 16:06:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 490111833013; Thu, 11 Jul 2019 16:06:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x6BG5cpv020504 for ; Thu, 11 Jul 2019 12:05:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0B6B35DC19; Thu, 11 Jul 2019 16:05:38 +0000 (UTC) Received: from dhcp-17-95.lcy.redhat.com (unknown [10.42.17.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B1595D973; Thu, 11 Jul 2019 16:05:35 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 11 Jul 2019 17:05:06 +0100 Message-Id: <20190711160516.2130-20-berrange@redhat.com> In-Reply-To: <20190711160516.2130-1-berrange@redhat.com> References: <20190711160516.2130-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 19/29] lxc: introduce virtlxcd daemon X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 11 Jul 2019 16:06:06 +0000 (UTC) The virtlxcd daemon will be responsible for providing the lxc API driver functionality. The lxc driver is still loaded by the main libvirtd daemon at this stage, so virtlxcd must not be running at the same time. Signed-off-by: Daniel P. Berrang=C3=A9 --- .gitignore | 1 + libvirt.spec.in | 1 + src/lxc/Makefile.inc.am | 15 +++++++++++++++ 3 files changed, 17 insertions(+) diff --git a/.gitignore b/.gitignore index e53f098288..f828835863 100644 --- a/.gitignore +++ b/.gitignore @@ -166,6 +166,7 @@ /src/virtlibxld /src/virtlockd /src/virtlogd +/src/virtlxcd /src/virtnetworkd /src/virtnodedevd /src/virtnwfilterd diff --git a/libvirt.spec.in b/libvirt.spec.in index bb373ea370..68729b8349 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1679,6 +1679,7 @@ exit 0 =20 %if %{with_lxc} %files daemon-driver-lxc +%attr(0755, root, root) %{_sbindir}/virtlxcd %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/ %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc diff --git a/src/lxc/Makefile.inc.am b/src/lxc/Makefile.inc.am index f27827c1e9..23a53f747b 100644 --- a/src/lxc/Makefile.inc.am +++ b/src/lxc/Makefile.inc.am @@ -110,6 +110,21 @@ endif WITH_BLKID libvirt_driver_lxc_impl_la_LIBADD +=3D $(SECDRIVER_LIBS) libvirt_driver_lxc_impl_la_SOURCES =3D $(LXC_DRIVER_SOURCES) =20 + +sbin_PROGRAMS +=3D virtlxcd + +virtlxcd_SOURCES =3D $(REMOTE_DAEMON_SOURCES) +virtlxcd_CFLAGS =3D \ + $(REMOTE_DAEMON_CFLAGS) \ + -DSOCK_NAME=3D"\"virtlxcd-sock\"" \ + -DSOCK_NAME_RO=3D"\"virtlxcd-sock-ro\"" \ + -DSOCK_NAME_ADMIN=3D"\"virtlxcd-admin-sock\"" \ + -DDAEMON_NAME=3D"\"virtlxcd\"" \ + -DMODULE_NAME=3D"\"lxc\"" \ + $(NULL) +virtlxcd_LDFLAGS =3D $(REMOTE_DAEMON_LDFLAGS) +virtlxcd_LDADD =3D $(REMOTE_DAEMON_LDADD) + libexec_PROGRAMS +=3D libvirt_lxc =20 libvirt_lxc_SOURCES =3D \ --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list