From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 20 Oct 2026 13:49:56 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xJ8Lr-00111Z-2o for lore@lore.pengutronix.de; Tue, 20 Oct 2026 13:49:56 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1xJ8Lq-0002fN-ND; Tue, 20 Oct 2026 13:49:54 +0200 Received: from mx1.white.stw.pengutronix.de ([185.203.200.13]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1xJ8LE-0000TI-Ca for ptxdist@pengutronix.de; Tue, 20 Oct 2026 13:49:16 +0200 Received: from h4.cmg2.smtp.forpsi.com (h4.cmg2.smtp.forpsi.com [185.129.138.189]) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPS id 3EB66201EC5 for ; Tue, 20 Oct 2026 13:49:16 +0200 (CEST) ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1792496956; a=rsa-sha256; cv=none; b=R0zTn9AlVScSVGFjsGqogtULo0dIFrJBX2NpU8jZorHfgdNFDEgfhHt4iUIbsszhcgzvnW nr0d8wkZ9xEDAf3ajUeTbt63CWjtCGyhVg9Ww3L6FzMOxgYIfSvjuc3n1LRF2oE+izqAu1 KP/wNHFprRz1L330k4SGBWHr12W+WUOkaAch01rnk2glwZUdThP2dSBqKazjKhDTq7EOd6 n573KYwAGVHnNVPT72v23CU0Fy/ygNryl24jjalWbyMcZmmuc24nCcUVE2jenpBiYL1vcN VdFNvd0Zb4/72DmH3YBva7ogl/tOju4uPyiF5XngUN+Y5v9amFjcXtA+xvvoAg== ARC-Authentication-Results: i=1; mx1.white.stw.pengutronix.de; dkim=pass header.d=triops.cz header.s=f2019 header.b=Vpjc9uit; spf=none (mx1.white.stw.pengutronix.de: domain of oss-lists@triops.cz has no SPF policy when checking 185.129.138.189) smtp.mailfrom=oss-lists@triops.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1792496956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JMyeVnG+PCqneVyd//zqrE1H1gCuqBUaCr2E5XtF7YU=; b=XvNuIOhpMQCReVv/7YsD2RpHd7Wae4WzoIvnKDshSCF4SqTY1wfDxasC58YiUYfQte/4jx 5vglcVl+UEq/quASGcgJQEh4hvY+F+dPDarTZroiKXx1QPoLrr5jXKihpA6emAps17EtSi Wmib1kRN8qjIZAQgEBsNDOxaKgiv06GRjZa+1aEEhjo2kXFoyWJfRENdoyiM2JJHMMGmTD JMqpsTsMXCu/Wh1UlZ0+/wMpImqqUkYzb8mG/pwtzNkHmp14fRR2XT5foON+VaxK2fhpON MrpGpUT3uPY+/wMLeBptyfrjA3TvJCoFUamwDK3ChkJ/AJRzHVyfg502390JUg== Received: from localhost.localdomain ([91.218.190.200]) by cmgsmtp with ESMTPSA id J8LAx5Bd8NbEUJ8LExFQAd; Tue, 20 Oct 2026 13:49:16 +0200 From: Ladislav Michl To: ptxdist@pengutronix.de Date: Tue, 20 Oct 2026 13:49:08 +0200 Message-ID: <5d2e18da0c3a5c658c27360c0fb4365b5f75b48e.1792491301.git.ladis@triops.cz> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfK9SehLm9SNcbdr2k/Xf4nQmPBhBnu5jc1oLSOxA8A9lDAiOFFpR8rfIzFAKcbUMDE7a5htvQjE9IGlFje8NoF/RaXwBHmQD9iZ/B8h+VVV1BmV9wCMD 6GYdvbjCjPado6WmnyXcKeblgb8A2xRrSPM3cGxd7R0lLHlZV5FwbfGO5ohYXX3VbhXkbrIHeGAwsq2/pC5nTwOf6GtWUykSXw8= X-Rspamd-Server: mx1 X-Rspamd-Queue-Id: 3EB66201EC5 X-Spamd-Result: default: False [-2.60 / 15.00]; BAYES_HAM(-3.00)[99.99%]; R_MISSING_CHARSET(0.50)[]; ONCE_RECEIVED(0.20)[]; R_DKIM_ALLOW(-0.20)[triops.cz:s=f2019]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24806, ipnet:185.129.136.0/22, country:CZ]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[triops.cz]; ARC_SIGNED(0.00)[pengutronix.de:s=20260414:i=1]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; NEURAL_HAM(-0.00)[-0.990]; DKIM_TRACE(0.00)[triops.cz:+] X-Rspamd-Action: no action X-Stat-Signature: bqan6wi88yzdf3tq4x673mtqgk6s79yy X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v1 15/17] Revert "sepolgen: remove after one year in staging" X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false From: Ladislav Michl This partially reverts commit 9fe5462616de2ce93663f409f471ea83a6d5fbb5. Signed-off-by: Ladislav Michl --- rules/sepolgen.in | 29 ++++++++++++++++++++++++ rules/sepolgen.make | 54 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 rules/sepolgen.in create mode 100644 rules/sepolgen.make diff --git a/rules/sepolgen.in b/rules/sepolgen.in new file mode 100644 index 000000000..94f2ce071 --- /dev/null +++ b/rules/sepolgen.in @@ -0,0 +1,29 @@ +## SECTION=staging +## old section: +### SECTION=selinux + +config SEPOLGEN + tristate + prompt "sepolgen" + select PYTHON + select LIBSELINUX + select LIBSELINUX_PYTHON + help + A Python module used in SELinux policy generation + + This package contains a Python module that forms the core of + the modern audit2allow (which is a part of the package + policycoreutils). The sepolgen library is structured to give + flexibility to the application using it. The library + contains: Reference Policy Representation, which are Objects + for representing policies and the reference policy + interfaces. Secondly, it has objects and algorithms for + representing access and sets of access in an abstract way + and searching that access. It also has a parser for + reference policy "headers". It contains infrastructure for + parsing SELinux related messages as produced by the audit + system. It has facilities for generating policy based on + required access. + + STAGING: remove in ptxdist-2020.06.0 + Old version that needs to be updated. diff --git a/rules/sepolgen.make b/rules/sepolgen.make new file mode 100644 index 000000000..7084e1d1d --- /dev/null +++ b/rules/sepolgen.make @@ -0,0 +1,54 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Marc Kleine-Budde +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SEPOLGEN) += sepolgen + +# +# Paths and names +# +SEPOLGEN_VERSION := 1.1.8 +SEPOLGEN_MD5 := d734ff236639cc1bd3a33901774fa98d +SEPOLGEN := sepolgen-$(SEPOLGEN_VERSION) +SEPOLGEN_SUFFIX := tar.gz +SEPOLGEN_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(SEPOLGEN).$(SEPOLGEN_SUFFIX) +SEPOLGEN_SOURCE := $(SRCDIR)/$(SEPOLGEN).$(SEPOLGEN_SUFFIX) +SEPOLGEN_DIR := $(BUILDDIR)/$(SEPOLGEN) +SEPOLGEN_LICENSE := GPL-2.0-only + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SEPOLGEN_CONF_TOOL := NO +# no ':=' because of $(PYTHON_SITEPACKAGES) +SEPOLGEN_MAKE_ENV = PYTHONLIBDIR=$(PYTHON_SITEPACKAGES) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sepolgen.targetinstall: + @$(call targetinfo) + + @$(call install_init, sepolgen) + @$(call install_fixup, sepolgen,PRIORITY,optional) + @$(call install_fixup, sepolgen,SECTION,base) + @$(call install_fixup, sepolgen,AUTHOR,"Marc Kleine-Budde ") + @$(call install_fixup, sepolgen,DESCRIPTION,missing) + + @$(call install_tree, sepolgen, 0, 0, -, $(PYTHON_SITEPACKAGES)) + @$(call install_alternative, sepolgen, 0, 0, 0644, /var/lib/sepolgen/perm_map) + + @$(call install_finish, sepolgen) + + @$(call touch) + +# vim: syntax=make -- 2.47.3