From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 12/17] checkpolicy: version bump 2.1.11 -> 3.11
Date: Sat, 31 Oct 2026 21:38:13 +0100 [thread overview]
Message-ID: <20261031203823.357406-13-oss-lists@triops.cz> (raw)
In-Reply-To: <20261031203823.357406-1-oss-lists@triops.cz>
From: Ladislav Michl <ladis@triops.cz>
Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
CHANGES:
- v2: None
rules/checkpolicy.in | 15 ++-------------
rules/checkpolicy.make | 26 +++++++++++++-------------
2 files changed, 15 insertions(+), 26 deletions(-)
diff --git a/rules/checkpolicy.in b/rules/checkpolicy.in
index b1e8bca01..6b51dd6be 100644
--- a/rules/checkpolicy.in
+++ b/rules/checkpolicy.in
@@ -1,18 +1,10 @@
-## SECTION=staging
-## old section:
-### SECTION=selinux
+## SECTION=selinux
config CHECKPOLICY
tristate
prompt "checkpolicy"
- #
- # The target package is not functional yet, but we need the host
- # package. Depend on broken for now.
- #
- depends on BROKEN
- select LIBSELINUX
select LIBSEPOL
- select FLEX
+ select HOST_FLEX
help
Security-enhanced Linux is a patch of the Linux kernel and a
number of utilities with enhanced security functionality
@@ -31,6 +23,3 @@ config CHECKPOLICY
the static libsepol since it deals with low level details of
the policy that have not been encapsulated/abstracted by a
proper shared library interface.
-
- STAGING: remove in ptxdist-2020.12.0
- Old version that need to be updated. Moved to staging with libselinux.
diff --git a/rules/checkpolicy.make b/rules/checkpolicy.make
index 6946fcecd..1cbf427d7 100644
--- a/rules/checkpolicy.make
+++ b/rules/checkpolicy.make
@@ -14,27 +14,26 @@ PACKAGES-$(PTXCONF_CHECKPOLICY) += checkpolicy
#
# Paths and names
#
-CHECKPOLICY_VERSION := 2.1.11
-CHECKPOLICY_MD5 := 046b590de004f8a6cee655c4e95a7970
+CHECKPOLICY_VERSION := $(SELINUX_VERSION)
+CHECKPOLICY_SHA256 := 9b81bfceef7fa9d02f9872e56a786f343dc58ef4b5713dce0d5c416e5b84cefa
CHECKPOLICY := checkpolicy-$(CHECKPOLICY_VERSION)
CHECKPOLICY_SUFFIX := tar.gz
-CHECKPOLICY_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(CHECKPOLICY).$(CHECKPOLICY_SUFFIX)
+CHECKPOLICY_URL := $(SELINUX_URL)/$(CHECKPOLICY).$(CHECKPOLICY_SUFFIX)
CHECKPOLICY_SOURCE := $(SRCDIR)/$(CHECKPOLICY).$(CHECKPOLICY_SUFFIX)
CHECKPOLICY_DIR := $(BUILDDIR)/$(CHECKPOLICY)
-CHECKPOLICY_LICENSE := unknown
+CHECKPOLICY_LICENSE := GPL-2.0-only AND LGPL-2.1-or-later
+CHECKPOLICY_LICENSE_FILES := file://LICENSE;md5=393a5ca445f6965873eca0259a17f833
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-#
-# autoconf
-#
-CHECKPOLICY_CONF_TOOL := NO
-CHECKPOLICY_MAKE_ENV := $(CROSS_ENV)
-CHECKPOLICY_MAKE_OPT := LIBDIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib
-CHECKPOLICY_INSTALL_OPT = \
- PREFIX=$(CHECKPOLICY_PKGDIR) \
+CHECKPOLICY_CONF_TOOL := NO
+CHECKPOLICY_MAKE_ENV := $(CROSS_ENV)
+CHECKPOLICY_MAKE_OPT := \
+ CFLAGS="-O2 -Wall -g"
+CHECKPOLICY_INSTALL_OPT := \
+ $(CHECKPOLICY_MAKE_OPT) \
install
# ----------------------------------------------------------------------------
@@ -50,7 +49,8 @@ $(STATEDIR)/checkpolicy.targetinstall:
@$(call install_fixup, checkpolicy,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
@$(call install_fixup, checkpolicy,DESCRIPTION,missing)
- @$(call install_copy, checkpolicy, 0, 0, 0755, $(CHECKPOLICY_DIR)/foobar, /dev/null)
+ @$(call install_copy, checkpolicy, 0, 0, 0755, -, /usr/bin/checkpolicy)
+ @$(call install_copy, checkpolicy, 0, 0, 0755, -, /usr/bin/checkmodule)
@$(call install_finish, checkpolicy)
--
2.47.3
next prev parent reply other threads:[~2026-10-31 20:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 20:38 [ptxdist] [PATCH v2 00/17] selinux: back at version 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 01/17] selinux: add common version and URL Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 02/17] Revert "python: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 03/17] host-swig: version bump 4.0.1 -> 4.5.1 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 04/17] Revert "*libsepol: remove" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 05/17] libsepol: version bump 2.1.8 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 06/17] Revert "libselinux: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 07/17] libselinux: version bump 2.1.12 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 08/17] audit: new package Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 09/17] Revert "libsemanage: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 10/17] libsemanage: version bump 2.1.9 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 11/17] Revert "checkpolicy: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` Ladislav Michl [this message]
2026-10-31 20:38 ` [ptxdist] [PATCH v2 13/17] Revert "policycoreutils: " Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 14/17] policycoreutils: version bump 2.1.13 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 15/17] Revert "sepolgen: remove after one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 16/17] sepolgen: version bump 1.1.8 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 17/17] selinux: restore the global option Ladislav Michl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261031203823.357406-13-oss-lists@triops.cz \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox