From nobody Sun Feb 8 15:07:56 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205994062640.4392775463115; Tue, 8 Aug 2017 08:26:34 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EB9C7C0587C9; Tue, 8 Aug 2017 15:26:30 +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 A932791295; Tue, 8 Aug 2017 15:26:30 +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 E76FD180B467; Tue, 8 Aug 2017 15:26:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQCuP013311 for ; Tue, 8 Aug 2017 11:26:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 345E370948; Tue, 8 Aug 2017 15:26:12 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id AC6C160A9D for ; Tue, 8 Aug 2017 15:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EB9C7C0587C9 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:58 +0200 Message-Id: <40880dd4c9c507c8b92b22d012c11c51a2decc8e.1502205855.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 7/7] data: add system dbus service policy configuration 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: , MIME-Version: 1.0 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 08 Aug 2017 15:26:32 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- configure.ac | 10 ++++++++++ data/Makefile.am | 8 +++++++- data/system/org.libvirt.conf | 12 ++++++++++++ libvirt-dbus.spec.in | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 data/system/org.libvirt.conf diff --git a/configure.ac b/configure.ac index 65071f9..4c654fa 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,16 @@ else fi AC_SUBST(DBUS_SYSTEM_SERVICES_DIR) =20 +AC_ARG_WITH(dbus-system-policies, + [AC_HELP_STRING([--with-dbus-system-policies=3D], + [where D-BUS system policies directory is])]) +if ! test -z "$with_dbus_system_policies" ; then + DBUS_SYSTEM_POLICIES_DIR=3D"$with_dbus_system_policies" +else + DBUS_SYSTEM_POLICIES_DIR=3D"$datadir/dbus-1/system.d" +fi +AC_SUBST(DBUS_SYSTEM_POLICIES_DIR) + AC_OUTPUT(Makefile data/Makefile src/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index b8f1376..58e855f 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -8,9 +8,15 @@ system_service_in_files =3D \ system_servicedir =3D $(DBUS_SYSTEM_SERVICES_DIR) system_service_DATA =3D $(system_service_in_files:.service.in=3D.service) =20 +system_policy_files =3D \ + system/org.libvirt.conf +system_policydir =3D $(DBUS_SYSTEM_POLICIES_DIR) +system_policy_DATA =3D $(system_policy_files) + EXTRA_DIST =3D \ $(service_in_files) \ - $(system_service_in_files) + $(system_service_in_files) \ + $(system_policy_files) =20 CLEANFILES =3D \ $(service_DATA) \ diff --git a/data/system/org.libvirt.conf b/data/system/org.libvirt.conf new file mode 100644 index 0000000..5cbc732 --- /dev/null +++ b/data/system/org.libvirt.conf @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/libvirt-dbus.spec.in b/libvirt-dbus.spec.in index 0f76de2..5be4c22 100644 --- a/libvirt-dbus.spec.in +++ b/libvirt-dbus.spec.in @@ -43,5 +43,6 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/libvirt-dbus %{_datadir}/dbus-1/services/org.libvirt.service %{_datadir}/dbus-1/system-services/org.libvirt.service +%{_datadir}/dbus-1/system.d/org.libvirt.conf =20 %changelog --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list