From nobody Sun Feb 8 14:31:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1594894421; cv=none; d=zohomail.com; s=zohoarc; b=laEkidZCT8wazqLm1LhsrYP0HRtKyPvVq8v10e9gLDoaW8AXNa/5gHkJD8I+G1IiqJUGh/y269strDdG08hP0r1kSqAcKGQ288GqJyMX8SKUj44voG7oEpxU6CmoIy9L2mE+x3oAs1DBBdb7qglQaxiFpwuAKTQF7HJZF8UeM7Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894421; 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; bh=OniFu0wK1F/Fy7eDW+RR6i9KRS/P8rIqnCJwDptB+YM=; b=cTqiw1dbHm+3fZemCg1XkuCT40kmAkNPoYxGsVfIMm7XMjnGuz9F0OJPPb9UDr8K3iMqPDyJUkhxZcvF2191AAKbUQvdaTwlYWi+jvPlRSpUnfUVPLr12vI5Cv9m4E2bn0HwYzdQPyQwlAQXrO6/I+/DMLCA0fRlMG6nIkA2uTU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1594894421165838.7729789000359; Thu, 16 Jul 2020 03:13:41 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-106-Y4Nul459MnmLinx3QgNJSw-1; Thu, 16 Jul 2020 06:13:36 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 122171009617; Thu, 16 Jul 2020 10:13:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E464D78A5B; Thu, 16 Jul 2020 10:13: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 B5C60730E6; Thu, 16 Jul 2020 10:13:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA5nPe018703 for ; Thu, 16 Jul 2020 06:05:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 09AC32B6DB; Thu, 16 Jul 2020 10:05:49 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 78F1C2B6E6 for ; Thu, 16 Jul 2020 10:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894419; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OniFu0wK1F/Fy7eDW+RR6i9KRS/P8rIqnCJwDptB+YM=; b=gVqcUhwlDIuEFCEnynG+7FxFGuQf0WkrBP4Q6NDC5DvssXnJ9zmkvdlgFlyX0g/o8rBhcm /6O1b8zOjcRiS57hhLkb6SaQrvdnSEd4oqIVv2ueCw+uK2xx/91ws+jL+C4XhGG3UCnfHQ ncec4owqNNFxmOIr8siypVzZwSv8YC8= X-MC-Unique: Y4Nul459MnmLinx3QgNJSw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 231/351] meson: src/access: generate org.libvirt.api.policy Date: Thu, 16 Jul 2020 11:57:47 +0200 Message-Id: <1eecd0b526196698a3b5891a819d85aec5282b50.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- src/access/Makefile.inc.am | 15 --------------- src/access/meson.build | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/access/Makefile.inc.am b/src/access/Makefile.inc.am index 72c62a0d2cd..d90829632ff 100644 --- a/src/access/Makefile.inc.am +++ b/src/access/Makefile.inc.am @@ -6,21 +6,6 @@ ACCESS_DRIVER_API_FILES =3D \ libvirt_access_lxc.xml \ $(NULL) =20 -ACCESS_DRIVER_POLKIT_POLICY =3D access/org.libvirt.api.policy - -$(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \ - $(top_srcdir)/scripts/genpolkit.py Makefile.am - $(AM_V_GEN)$(RUNUTF8) $(PYTHON) \ - $(top_srcdir)/scripts/genpolkit.py $< > $@ || rm -f $@ - -if WITH_POLKIT - -polkitactiondir =3D $(datadir)/polkit-1/actions -if WITH_LIBVIRTD -polkitaction_DATA =3D $(ACCESS_DRIVER_POLKIT_POLICY) -endif WITH_LIBVIRTD -endif ! WITH_POLKIT - libvirt_access.xml: $(srcdir)/rpc/gendispatch.pl \ $(REMOTE_PROTOCOL) Makefile.am $(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=3Daclapi \ diff --git a/src/access/meson.build b/src/access/meson.build index f3b605f0009..71bc4670091 100644 --- a/src/access/meson.build +++ b/src/access/meson.build @@ -9,6 +9,8 @@ access_polkit_sources =3D [ 'viraccessdriverpolkit.c', ] =20 +access_perm_h =3D files('viraccessperm.h') + remote_path =3D meson.source_root() / 'src' / 'remote' =20 access_gen_headers =3D [] @@ -58,6 +60,18 @@ endforeach =20 if conf.has('WITH_POLKIT') access_sources +=3D access_polkit_sources + + if conf.has('WITH_LIBVIRTD') + custom_target( + 'org.libvirt.api.policy', + input: access_perm_h, + output: 'org.libvirt.api.policy', + command: [ meson_python_prog, genpolkit_prog, '@INPUT@' ], + capture: true, + install: true, + install_dir: datadir / 'polkit-1' / 'actions', + ) + endif endif =20 virt_access_lib =3D static_library( --=20 2.26.2