From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 16 Nov 2026 09:20:33 +0100 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 1xSrXH-0000KQ-1y for lore@lore.pengutronix.de; Mon, 16 Nov 2026 08:53:55 +0100 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 1xSr7T-0007e6-F8; Mon, 16 Nov 2026 08:27:15 +0100 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 1xSr6w-0006Ic-KW for ptxdist@pengutronix.de; Mon, 16 Nov 2026 08:26:43 +0100 Received: from h3.cmg1.smtp.forpsi.com (h3.cmg1.smtp.forpsi.com [185.129.138.162]) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPS id 35C11201578 for ; Mon, 16 Nov 2026 08:26:42 +0100 (CET) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1794814002; 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=ryJfFMR3cJF1tBul2U1KF5o+il4Q68Jvxh1kVUp4tr8=; b=aT265DKHmbEtnup8EDJEeE35UR1g9GW8r0lEnrrkwjC9CvSkAV/mkmD9WhHooh13K6VR1b 0zngG4wNlHZa70TGLvgDeUgmP74io23Q0y3KNZpqZvIBES6vjcuF9ai0q8V0jLdo0ACkHz Qm5iBPMn1Q8f1zw1iRB+5MF+B/y95q1NurRHYd5FQcDEUwDguzi+X7Yp6/L/yqfwYwcoBJ WVLEeAYsF8MTgK3zY33lTfSBqbjq/irIO1+0N4AfT/eCAx38euOP7gIpqnXlmsOb/U0QR+ SNe3Hde0J6dfL1I3Anos+/jiDOcZhhhqp1XYFivZniRHHjNt27F5NQcSgLoelg== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1794814002; a=rsa-sha256; cv=none; b=WYD0YCp4aN7nPfsOGOkMFnWTth3s1iBMnIJWxdNiyxfv/3jYvS1dXJImoNbwCXaziZJgj+ st6j+F73J0dCWY/LObb2Jza7MrI77A53QRxGnZeEsWny9J2R4a7cJOMrlAbs+U3JLd3ZQ9 /9fRn0LnN/lFKOZAvZ2OHt/DcojKkj+1zNYeWGy8dEyIdwQjs8QyIN+Ko7Xa4TdM7ymQqO LeveuZTZCvS1idztyHj+DZab+lmMRu26PRSUs10g83Oe5NmTWVh5+j2JNIMaYJjl8+/Mve M5zF+dwHFSI/sLGAXXJaQQ2L4kK/cDECh+naNnERZ7mXpbWvjEGr9XqlML61EQ== ARC-Authentication-Results: i=1; mx1.white.stw.pengutronix.de; dkim=pass header.d=triops.cz header.s=f2019 header.b=k6dGhWCo; spf=none (mx1.white.stw.pengutronix.de: domain of oss-lists@triops.cz has no SPF policy when checking 185.129.138.162) smtp.mailfrom=oss-lists@triops.cz; dmarc=none Received: from localhost.localdomain ([91.218.190.200]) by cmgsmtp with ESMTPSA id Sr6ux1qkrkQfeSr6vxJMQ8; Mon, 16 Nov 2026 08:26:41 +0100 From: Ladislav Michl To: ptxdist@pengutronix.de Date: Mon, 16 Nov 2026 08:26:24 +0100 Message-ID: <20261116072639.3157459-5-oss-lists@triops.cz> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261116072639.3157459-1-oss-lists@triops.cz> References: <20261116072639.3157459-1-oss-lists@triops.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfDSEumRrfwgTPXeymRZmaXOW05pDx3rKYxM1P7LVlzDqJHcSevh3c3k7wrggI5deUB7kKMyBURyyX2W/M2LgOgPOrh0muNcEJF+pX+NGPiHd1zu4EvMu 7PRGmp8axEn7Y1Td8rzuxBd72pkJfGz7lQ7781b1ibIP7+qHSSh7vkCEyWFIx6TEFiF4evuUIkGTyV7TbLBWDDGomS1hJoHtGF8= X-Spamd-Result: default: False [-1.60 / 15.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[triops.cz:s=f2019]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24806, ipnet:185.129.136.0/22, country:CZ]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.992]; ARC_SIGNED(0.00)[pengutronix.de:s=20260414:i=1]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[triops.cz]; R_SPF_NA(0.00)[no SPF record]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[triops.cz:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 35C11201578 X-Rspamd-Server: mx1 X-Stat-Signature: ei8r4nf478d9e3xspdrfxwskihcw1zte 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 v3 04/18] Revert "*libsepol: remove" 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 43c4d983818f726dfe651ea72d4b5ddd6a5c91bc. Signed-off-by: Ladislav Michl --- CHANGES: - v2: do not restore host-libsepol, nothing uses it. Host tools are only needed to build a policy, so they should come back together with a policy package. - v3: None rules/libsepol.in | 10 +++++++++ rules/libsepol.make | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 rules/libsepol.in create mode 100644 rules/libsepol.make diff --git a/rules/libsepol.in b/rules/libsepol.in new file mode 100644 index 000000000..4ac087610 --- /dev/null +++ b/rules/libsepol.in @@ -0,0 +1,10 @@ +## SECTION=selinux + +config LIBSEPOL + tristate + prompt "libsepol" + help + libsepol provides an API for the manipulation of SELinux binary policies. + It is used by checkpolicy (the policy compiler) and similar tools, as well + as by programs like load_policy that need to perform specific transformations + on binary policies such as customizing policy boolean settings. diff --git a/rules/libsepol.make b/rules/libsepol.make new file mode 100644 index 000000000..cf5f4ef4d --- /dev/null +++ b/rules/libsepol.make @@ -0,0 +1,55 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Wolfram Sang +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBSEPOL) += libsepol + +# +# Paths and names +# +LIBSEPOL_VERSION := 2.1.8 +LIBSEPOL_MD5 := 56fa100ed85d7f06bd92f2892d92b3b0 +LIBSEPOL := libsepol-$(LIBSEPOL_VERSION) +LIBSEPOL_SUFFIX := tar.gz +LIBSEPOL_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(LIBSEPOL).$(LIBSEPOL_SUFFIX) +LIBSEPOL_SOURCE := $(SRCDIR)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX) +LIBSEPOL_DIR := $(BUILDDIR)/$(LIBSEPOL) +LIBSEPOL_LICENSE := LGPL-2.1-or-later + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBSEPOL_CONF_TOOL := NO +LIBSEPOL_MAKE_ENV := \ + $(CROSS_ENV) \ + SHLIBDIR=$(LIBSEPOL_PKGDIR)/usr/lib \ + CFLAGS="-O2 -Wall -g" + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libsepol.targetinstall: + @$(call targetinfo) + + @$(call install_init, libsepol) + @$(call install_fixup, libsepol,PRIORITY,optional) + @$(call install_fixup, libsepol,SECTION,base) + @$(call install_fixup, libsepol,AUTHOR,"Wolfram Sang ") + @$(call install_fixup, libsepol,DESCRIPTION,missing) + + @$(call install_lib, libsepol, 0, 0, 0644, libsepol) + + @$(call install_finish, libsepol) + + @$(call touch) + +# vim: syntax=make -- 2.47.3