From nobody Mon Feb 9 03:32:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1628272119; cv=none; d=zohomail.com; s=zohoarc; b=HsPtLos6NBcZl+NhKwRH2AFqmgUyqcgjA6g9maWt/aF861hv5Kv36uqjCb2pGR2aZ/9oNtehZ8wqK/6MH5YQZ1dQAyFPuTvbvOLvylAc3EvBbdLQGyFIte2+DQSggR5VOInbOZGE1/evaqOhNyazbpDI7Ol26S3EnZc9neVh2zE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628272119; h=Content-Type:Content-Transfer-Encoding:Cc: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=g+5bm/hMfhUZExUMEEv5tuRCRbNmjLjSwOTkCy7HJZ4=; b=VW2U8/ebu/dt1x3EqyqdrixlxYdNwDrva5X14ZkcOhj2r06+zf1oJZwbAtBLCTI7sfQaTAW3u7W6aD+zUfLp9g8c/4vsbdRmC38Dt+YZAztMrKKm0a1ervZnYYwWZkc2M+dMvZINFdctRoFKjRuzzrcDqzH6r/shMjaLJ5/iWu8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1628272119364523.9880112375598; Fri, 6 Aug 2021 10:48:39 -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-278-XLErqzNMNxS7U7EfekRHmQ-1; Fri, 06 Aug 2021 13:48:36 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6E31593925; Fri, 6 Aug 2021 17:48:30 +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 4B76E1970E; Fri, 6 Aug 2021 17:48: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 1A1434A704; Fri, 6 Aug 2021 17:48:30 +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 176HmLur000713 for ; Fri, 6 Aug 2021 13:48:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id B2ED57A8D6; Fri, 6 Aug 2021 17:48:21 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.39.193.169]) by smtp.corp.redhat.com (Postfix) with ESMTP id C409260853; Fri, 6 Aug 2021 17:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628272118; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=g+5bm/hMfhUZExUMEEv5tuRCRbNmjLjSwOTkCy7HJZ4=; b=H+CoWkTAdLqW1V3F28gMm2DvDRUVH7PC85S/SPMkV/Zh5/aeS0wYVGEfbkTwOHn4psJN9V fjIqskgCoxW+NSdiC6Av9yYexoecfm/Ktusop9aQoqPpsiy17SBg0yd9d1g2GsHQj9jYsS fM7tSGnaRcvn80H8+U3vdlOvskuViGw= X-MC-Unique: XLErqzNMNxS7U7EfekRHmQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 04/13] selinux: move selinux policy build helper to scripts directory Date: Fri, 6 Aug 2021 18:48:01 +0100 Message-Id: <20210806174810.3730064-5-berrange@redhat.com> In-Reply-To: <20210806174810.3730064-1-berrange@redhat.com> References: <20210806174810.3730064-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Vit Mojzis 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.84 on 10.5.11.23 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628272121268100003 The majority of build helper scripts live in this directory Signed-off-by: Daniel P. Berrang=C3=A9 --- scripts/meson.build | 1 + .../compile_policy.py =3D> scripts/selinux-compile-policy.py | 0 src/security/selinux/mcs/meson.build | 3 ++- src/security/selinux/meson.build | 1 - src/security/selinux/mls/meson.build | 3 ++- 5 files changed, 5 insertions(+), 3 deletions(-) rename src/security/selinux/compile_policy.py =3D> scripts/selinux-compile= -policy.py (100%) diff --git a/scripts/meson.build b/scripts/meson.build index 421e3d2acd..6f766b3822 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -29,6 +29,7 @@ scripts =3D [ 'meson-timestamp.py', 'mock-noinline.py', 'prohibit-duplicate-header.py', + 'selinux-compile-policy.py', ] =20 foreach name : scripts diff --git a/src/security/selinux/compile_policy.py b/scripts/selinux-compi= le-policy.py similarity index 100% rename from src/security/selinux/compile_policy.py rename to scripts/selinux-compile-policy.py diff --git a/src/security/selinux/mcs/meson.build b/src/security/selinux/mc= s/meson.build index 419253f151..113148851e 100644 --- a/src/security/selinux/mcs/meson.build +++ b/src/security/selinux/mcs/meson.build @@ -8,7 +8,8 @@ selinux_sources =3D [ virt_pp =3D custom_target('virt.pp', output : 'virt.pp', input : selinux_sources, - command : [compile_policy_prog, '@INPUT@', '@OUTPUT@', 'selinux/mcs/tmp'= , 'mcs'], + command : [selinux_compile_policy_prog, '@INPUT@', '@OUTPUT@', + 'selinux/mcs/tmp', 'mcs'], install : false) =20 bzip =3D custom_target('virt.pp.bz2', diff --git a/src/security/selinux/meson.build b/src/security/selinux/meson.= build index cf28769431..8db485a561 100644 --- a/src/security/selinux/meson.build +++ b/src/security/selinux/meson.build @@ -1,4 +1,3 @@ -compile_policy_prog =3D find_program('compile_policy.py') bzip2_prog =3D find_program('bzip2') =20 install_data('virt.if', install_dir : 'share/selinux/devel/include/distrib= uted') diff --git a/src/security/selinux/mls/meson.build b/src/security/selinux/ml= s/meson.build index 20bab41fea..7f3233f1bd 100644 --- a/src/security/selinux/mls/meson.build +++ b/src/security/selinux/mls/meson.build @@ -8,7 +8,8 @@ selinux_sources =3D [ virt_pp_mls =3D custom_target('virt.pp', output : 'virt.pp', input : selinux_sources, - command : [compile_policy_prog, '@INPUT@', '@OUTPUT@', 'selinux/mls/tmp'= , 'mls'], + command : [selinux_compile_policy_prog, '@INPUT@', '@OUTPUT@', + 'selinux/mls/tmp', 'mls'], install : false) =20 bzip_mls =3D custom_target('virt.pp.bz2', --=20 2.31.1