From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 14 Nov 2026 17:02:05 +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 1xSGCb-00ApFH-1j for lore@lore.pengutronix.de; Sat, 14 Nov 2026 17:02:05 +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 1xSGCa-0007as-OX; Sat, 14 Nov 2026 17:02:04 +0100 Received: from mx1.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::107]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1xSGCS-0007Vs-KN for ptxdist@pengutronix.de; Sat, 14 Nov 2026 17:01:56 +0100 Received: from ptx.office.stw.pengutronix.de (ptx.office.stw.pengutronix.de [IPv6:2a0a:edc0:0:900:1d::109]) (Authenticated sender: relay-from-ptx.office.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 8D2C6200F2F; Sat, 14 Nov 2026 17:01:56 +0100 (CET) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1794672116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Hy3abvN/dsZqap/tDPjGaAPnVQmJFQJBTi4AreE9RJA=; b=UCuj0I1bynb+osUMtOhPNKl35BLTpUoBr/fz8i4NPVO/Pa0Bdqh7VtPut3VZYedQnZgb/N zY4StWrKlwdei/1IMXAZfzl7n2rBClYoWWavKBsP9l7wktD4vFd0av0F2h6rNO+gFH0riw LPB7ijiR90uW1rAPLXw3n5+b/f2B6bW9zNVHxCoNswskaHTPMvy2KyjaLww2G+PyddsD/L DWmihblCYpmcJyfyNse+UeNz0Gw8E4CbNwum7rjud/gYWhiruYKP6bmg8CaQ6Np/Y5W+t5 EAuPxkQzkum+tUHRP4e/FprTVAGWbofpn7MR84JZEc6XzvxY8gnL6is7GeG4yg== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1794672116; a=rsa-sha256; cv=none; b=KuGtfKfIUCrdPzSAhQtYh8kuBzjLCruvb/K7CNyUZyA9675jq8NddPf4NensIcAATARwSR z9BrfyS79Uln0c5wU+BZ2GlCdwZVWmGy2OkRIj/N+OS7f1nZ2kz9Z3L3sArLB5t3z25KtX nPZD1yOTDcgfpJk3e75ak/b2os5LvBPsfxBZK6GgrfzWFNgRaKb0Dj07F0/F2J1ECSZEZM P+FO3tG2aAudFb0fBX5H1JQpYAeWU7X33uIP1rdALA/mZRkAzX51YwiJK+6NpchQ2i7w4c HVTejqcYvorx4xPpzicj/GaRStKIThyQUCNx2C4hR+gemmw0Nhhp6HH/AfkSZQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-ptx.office.stw.pengutronix.de smtp.mailfrom=mol@pengutronix.de Received: by ptx.office.stw.pengutronix.de (Postfix, from userid 1014) id 78A041BF844; Sat, 14 Nov 2026 17:01:56 +0100 (CET) Date: Sat, 14 Nov 2026 17:01:56 +0100 From: Michael Olbrich To: Ladislav Michl Message-ID: References: <20261031203823.357406-1-oss-lists@triops.cz> <20261031203823.357406-15-oss-lists@triops.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261031203823.357406-15-oss-lists@triops.cz> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH v2 14/17] policycoreutils: version bump 2.1.13 -> 3.11 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 Cc: 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 On Sat, Oct 31, 2026 at 09:38:15PM +0100, Ladislav Michl wrote: > From: Ladislav Michl > > Upstream moved the python tools to selinux-python and the semodule_* > tools to semodule-utils. While there also add PAM support. > > Signed-off-by: Ladislav Michl > --- > CHANGES: > - v2: use full PTXCONF_ variable names in ptx/ifdef and ifdef, so PAM, > audit and PAM config files actually work. Select needed libc > parts (crypt, dl, util, pthread). Drop BusyBox find selects and > document fixfiles requirements in help text instead. > > rules/policycoreutils.in | 113 +++++++++++--------------- > rules/policycoreutils.make | 159 ++++++++++++++++--------------------- > 2 files changed, 115 insertions(+), 157 deletions(-) > > diff --git a/rules/policycoreutils.in b/rules/policycoreutils.in > index fce42b002..52208c2e4 100644 > --- a/rules/policycoreutils.in > +++ b/rules/policycoreutils.in > @@ -1,20 +1,18 @@ > -## SECTION=staging > -## old section: > -### SECTION=selinux > +## SECTION=selinux > > menuconfig POLICYCOREUTILS > tristate > prompt "policycoreutils " > - select LIBCAP_NG > - select LIBCGROUP > select LIBSELINUX > - select LIBSEMANAGE > select LIBSEPOL > - select DBUS_GLIB if POLICYCOREUTILS_RESTORECOND > - select BUSYBOX_FEATURE_FIND_DEPTH if BUSYBOX_FIND > - select BUSYBOX_FEATURE_FIND_DELETE if BUSYBOX_FIND > - select BUSYBOX_SELINUX if BUSYBOX_FIND > - select BUSYBOX_FEATURE_FIND_CONTEXT if BUSYBOX_FIND > + select LIBSEMANAGE if POLICYCOREUTILS_SEMODULE > + select LIBSEMANAGE if POLICYCOREUTILS_SETSEBOOL > + select AUDIT if POLICYCOREUTILS_AUDIT > + select PAM if GLOBAL_PAM > + select LIBC_CRYPT if !GLOBAL_PAM && (POLICYCOREUTILS_NEWROLE || POLICYCOREUTILS_RUN_INIT) > + select LIBC_DL if POLICYCOREUTILS_RUN_INIT > + select LIBC_UTIL if POLICYCOREUTILS_RUN_INIT > + select LIBC_PTHREAD if POLICYCOREUTILS_SETFILES > help > This package contains the core policy utilities that are required > for basic operation of an SELinux system. These utilities include > @@ -22,90 +20,71 @@ menuconfig POLICYCOREUTILS > to switch roles, and run_init to run /etc/init.d scripts in the proper > context. > > - STAGING: remove in ptxdist-2020.12.0 > - Old version that need to be updated. Moved to staging with libselinux. > - > if POLICYCOREUTILS > > -menuconfig POLICYCOREUTILS_PYTHON > - # needs sepolgen > - depends on BROKEN > - bool "python based tools" > - > -if POLICYCOREUTILS_PYTHON > - > -config POLICYCOREUTILS_AUDIT2ALLOW > - bool "audit2allow" > - > -config POLICYCOREUTILS_SEPOLGEN_IFGEN > - select POLICYCOREUTILS_AUDIT2ALLOW > - bool "sepolgen-ifgen" > - > -config POLICYCOREUTILS_AUDIT2WHY > - select POLICYCOREUTILS_AUDIT2ALLOW > - bool "audit2why" > - > -config POLICYCOREUTILS_SANDBOX > - bool "sandbox" > - depends on BROKEN > - > -config POLICYCOREUTILS_CHCAT > - select LIBSEMANAGE_PYTHON > - depends on BROKEN > - bool "chcat" > - > -config POLICYCOREUTILS_SEMANAGE > - select LIBSEMANAGE_PYTHON > - depends on BROKEN > - bool "semanage" > - > -endif > +config POLICYCOREUTILS_AUDIT > + bool "audit support" > + help > + Let newrole, run_init and setfiles log to the audit subsystem. > > config POLICYCOREUTILS_LOAD_POLICY > bool "load_policy" > + depends on !BUSYBOX_LOAD_POLICY || ALLYES > + > +comment "busybox' load_policy is selected!" > + depends on BUSYBOX_LOAD_POLICY > > config POLICYCOREUTILS_NEWROLE > bool "newrole" > > -config POLICYCOREUTILS_RESTORECOND > - bool "restorecond" > - depends on BROKEN > +config POLICYCOREUTILS_NEWROLE_PAM_CFG > + bool "install /etc/pam.d/newrole" > + depends on POLICYCOREUTILS_NEWROLE && GLOBAL_PAM > > config POLICYCOREUTILS_RUN_INIT > bool "run_init/open_init_pty" > > +config POLICYCOREUTILS_RUN_INIT_PAM_CFG > + bool "install /etc/pam.d/run_init" > + depends on POLICYCOREUTILS_RUN_INIT && GLOBAL_PAM > + > config POLICYCOREUTILS_FIXFILES > bool "fixfiles" > - > -config POLICYCOREUTILS_GENHOMEDIRCON > - select POLICYCOREUTILS_SEMODULE > - bool "genhomedircon" > + help > + fixfiles script needs a 'find' supporting -context, -delete, > + -mindepth, -exec, -type, -print0 and parentheses, plus > + 'chcon --reference'. BusyBox can provide these with SELinux > + support enabled, but 'fixfiles -N' additionally requires > + -mount and -newermt only provided by GNU findutils. > > config POLICYCOREUTILS_SECON > bool "secon" > > config POLICYCOREUTILS_SEMODULE > - bool "semodule" > - > -config POLICYCOREUTILS_SEMODULE_DEPS > - bool "semodule_deps" > - > -config POLICYCOREUTILS_SEMODULE_EXPAND > - bool "semodule_expand" > - > -config POLICYCOREUTILS_SEMODULE_LINK > - bool "semodule_link" > - > -config POLICYCOREUTILS_SEMODULE_PACKAGE > - bool "semodule_package" > + bool "semodule/genhomedircon" > > config POLICYCOREUTILS_SESTATUS > bool "sestatus" > + depends on !BUSYBOX_SESTATUS || ALLYES > + > +comment "busybox' sestatus is selected!" > + depends on BUSYBOX_SESTATUS > > config POLICYCOREUTILS_SETFILES > bool "setfiles/restorecon" > + depends on !BUSYBOX_SETFILES && !BUSYBOX_RESTORECON || ALLYES > + > +comment "busybox' setfiles/restorecon is selected!" > + depends on BUSYBOX_SETFILES || BUSYBOX_RESTORECON > > config POLICYCOREUTILS_SETSEBOOL > bool "setsebool" > + depends on !BUSYBOX_SETSEBOOL || ALLYES > + > +comment "busybox' setsebool is selected!" > + depends on BUSYBOX_SETSEBOOL > + > +config POLICYCOREUTILS_UNSETFILES > + bool "unsetfiles" > > endif > diff --git a/rules/policycoreutils.make b/rules/policycoreutils.make > index 07baaebe8..a5ca327bf 100644 > --- a/rules/policycoreutils.make > +++ b/rules/policycoreutils.make > @@ -14,116 +14,88 @@ PACKAGES-$(PTXCONF_POLICYCOREUTILS) += policycoreutils > # > # Paths and names > # > -POLICYCOREUTILS_VERSION := 2.1.13 > -POLICYCOREUTILS_MD5 := 97c0b828599fe608f37894989820d71d > +POLICYCOREUTILS_VERSION := $(SELINUX_VERSION) > +POLICYCOREUTILS_SHA256 := 054e41ec039731a5ee6b797a8e0b8d6e346ee1d0a9bac2f252db48c23f9a8b1b > POLICYCOREUTILS := policycoreutils-$(POLICYCOREUTILS_VERSION) > POLICYCOREUTILS_SUFFIX := tar.gz > -POLICYCOREUTILS_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(POLICYCOREUTILS).$(POLICYCOREUTILS_SUFFIX) > +POLICYCOREUTILS_URL := $(SELINUX_URL)/$(POLICYCOREUTILS).$(POLICYCOREUTILS_SUFFIX) > POLICYCOREUTILS_SOURCE := $(SRCDIR)/$(POLICYCOREUTILS).$(POLICYCOREUTILS_SUFFIX) > POLICYCOREUTILS_DIR := $(BUILDDIR)/$(POLICYCOREUTILS) > -POLICYCOREUTILS_LICENSE := GPL-2.0-or-later > +POLICYCOREUTILS_LICENSE := GPL-2.0-only > +POLICYCOREUTILS_LICENSE_FILES := file://LICENSE;md5=393a5ca445f6965873eca0259a17f833 > +POLICYCOREUTILS_CVE_PRODUCT := selinuxproject:policycoreutils > > # ---------------------------------------------------------------------------- > # Prepare > # ---------------------------------------------------------------------------- > > -POLICYCOREUTILS_SUBDIRS_y := \ > - man \ > - po \ > - scripts > - > +POLICYCOREUTILS_SUBDIRS_y := > POLICYCOREUTILS_PROGS_y := > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_AUDIT2ALLOW) += audit2allow > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_AUDIT2ALLOW) += /usr/bin/audit2allow > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEPOLGEN_IFGEN) += sepolgen-ifgen > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEPOLGEN_IFGEN) += /usr/bin/sepolgen-ifgen > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEPOLGEN_IFGEN) += /usr/bin/sepolgen-ifgen-attr-helper > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_AUDIT2WHY) += audit2why > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_AUDIT2WHY) += /usr/bin/audit2why > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_LOAD_POLICY) += load_policy > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_LOAD_POLICY) += /usr/sbin/load_policy > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_NEWROLE) += newrole > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_NEWROLE) += /usr/bin/newrole > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_RESTORECOND) += restorecond > -#POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_RESTORECOND) += > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += run_init > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += /usr/sbin/run_init > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += /usr/sbin/open_init_pty > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SANDBOX) += sandbox > -#POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SANDBOX) += > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_LOAD_POLICY) += load_policy > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_LOAD_POLICY) += /usr/sbin/load_policy > > -# no SUBDIRS needed for scripts > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_CHCAT) += /usr/bin/chcat > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_FIXFILES) += /usr/sbin/fixfiles > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_GENHOMEDIRCON) += /usr/sbin/genhomedircon > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_NEWROLE) += newrole > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_NEWROLE) += /usr/bin/newrole > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SECON) += secon > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SECON) += /usr/bin/secon > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += run_init > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += /usr/sbin/run_init > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_RUN_INIT) += /usr/sbin/open_init_pty > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMANAGE) += semanage > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMANAGE) += /usr/sbin/semanage > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_FIXFILES) += scripts > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_FIXFILES) += /usr/sbin/fixfiles > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE) += semodule > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE) += /usr/sbin/semodule > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SECON) += secon > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SECON) += /usr/bin/secon > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_DEPS) += semodule_deps > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_DEPS) += /usr/bin/semodule_deps > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE) += semodule hll/pp > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE) += /usr/sbin/semodule > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE) += /usr/libexec/selinux/hll/pp > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_EXPAND) += semodule_expand > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_EXPAND) += /usr/bin/semodule_expand > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SESTATUS) += sestatus > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SESTATUS) += /usr/bin/sestatus > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_LINK) += semodule_link > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_LINK) += /usr/bin/semodule_link > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SETFILES) += setfiles > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SETFILES) += /usr/sbin/setfiles > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SETFILES) += /usr/sbin/restorecon_xattr > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_PACKAGE) += semodule_package > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_PACKAGE) += /usr/bin/semodule_package > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SEMODULE_PACKAGE) += /usr/bin/semodule_unpackage > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SETSEBOOL) += setsebool > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SETSEBOOL) += /usr/sbin/setsebool > > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SESTATUS) += sestatus > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SESTATUS) += /usr/sbin/sestatus > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SETFILES) += setfiles > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SETFILES) += /usr/sbin/setfiles > - > -POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_SETSEBOOL) += setsebool > -POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_SETSEBOOL) += /usr/sbin/setsebool > - > -POLICYCOREUTILS_CONF_TOOL := NO > - > -# no ':=' because of $(PYTHON_SITEPACKAGES) > -POLICYCOREUTILS_MAKE_ENV = \ > - $(CROSS_ENV) \ > - SBINDIR=$(POLICYCOREUTILS_PKGDIR)/usr/sbin \ > - PYTHONLIBDIR=$(POLICYCOREUTILS_PKGDIR)$(PYTHON_SITEPACKAGES)/.. \ > - CFLAGS="-O2 -Wall" \ > - INOTIFYH="/usr/include/sys/inotify.h" \ > - PAMH="" \ > - AUDITH="" > -# > -# We don't have PAM or AUDIT, so turn off. > -# > -# Use the following to turn on: > -# (Use these paths, as of version 2.1.13) > -# > -# PAMH=/usr/include/security/pam_appl.h > -# AUDITH=/usr/include/libaudit.h > -# > +POLICYCOREUTILS_SUBDIRS_$(PTXCONF_POLICYCOREUTILS_UNSETFILES) += unsetfiles > +POLICYCOREUTILS_PROGS_$(PTXCONF_POLICYCOREUTILS_UNSETFILES) += /usr/sbin/unsetfiles > > -POLICYCOREUTILS_MAKE_OPT := \ > - SUBDIRS="$(POLICYCOREUTILS_SUBDIRS_y)" \ > - LIBDIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib > -POLICYCOREUTILS_INSTALL_OPT := \ > +POLICYCOREUTILS_CONF_TOOL := NO > +POLICYCOREUTILS_MAKE_ENV := $(CROSS_ENV) > +POLICYCOREUTILS_MAKE_OPT := \ > SUBDIRS="$(POLICYCOREUTILS_SUBDIRS_y)" \ > + PREFIX=/usr \ > + BINDIR=/usr/bin \ > + SBINDIR=/usr/sbin \ > + ETCDIR=/etc \ > + LOCALEDIR=/usr/share/locale \ > + PAMH=$(call ptx/ifdef, PTXCONF_GLOBAL_PAM, y, n) \ > + AUDITH=$(call ptx/ifdef, PTXCONF_POLICYCOREUTILS_AUDIT, y, n) \ > + AUDIT_LOG_PRIV=n \ > + NAMESPACE_PRIV=n \ > + LSPP_PRIV=n \ > + CFLAGS="-O2 -Wall -g" > +POLICYCOREUTILS_INSTALL_OPT := \ > + $(POLICYCOREUTILS_MAKE_OPT) \ > install > > +# ---------------------------------------------------------------------------- > +# Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/policycoreutils.install: > + @$(call targetinfo) > +ifdef PTXCONF_GLOBAL_PAM > + @mkdir -p $(POLICYCOREUTILS_PKGDIR)/etc/pam.d > +endif This looks wrong. $(POLICYCOREUTILS_PKGDIR) is deleted at the beginning of world/install so creating that directory here is a noop. > + @$(call world/install, POLICYCOREUTILS) > + @$(call touch) > + > # ---------------------------------------------------------------------------- > # Target-Install > # ---------------------------------------------------------------------------- > @@ -137,15 +109,22 @@ $(STATEDIR)/policycoreutils.targetinstall: > @$(call install_fixup, policycoreutils,AUTHOR,"Wolfram Sang ") > @$(call install_fixup, policycoreutils,DESCRIPTION,missing) > > +ifdef PTXCONF_POLICYCOREUTILS_NEWROLE_PAM_CFG > + @$(call install_alternative, policycoreutils, 0, 0, 0644, /etc/pam.d/newrole) > +endif > +ifdef PTXCONF_POLICYCOREUTILS_RUN_INIT_PAM_CFG > + @$(call install_alternative, policycoreutils, 0, 0, 0644, /etc/pam.d/run_init) > +endif > + > @$(foreach prog, $(POLICYCOREUTILS_PROGS_y), \ > $(call install_copy, policycoreutils, 0, 0, 0755, -, $(prog));) @$(foreach prog, $(POLICYCOREUTILS_PROGS_y), \ $(call install_copy, policycoreutils, 0, 0, 0755, -, $(prog))$(ptx/nl)) Michael > > -ifdef PTXCONF_POLICYCOREUTILS_SETFILES > - @$(call install_link, policycoreutils, setfiles, /usr/sbin/restorecon) > +ifdef PTXCONF_POLICYCOREUTILS_SEMODULE > + @$(call install_link, policycoreutils, semodule, /usr/sbin/genhomedircon) > endif > > -ifdef PTXCONF_POLICYCOREUTILS_SEMANAGE > - @$(call install_copy, policycoreutils, 0, 0, 0644, -, $(PYTHON_SITEPACKAGES)/seobject.py) > +ifdef PTXCONF_POLICYCOREUTILS_SETFILES > + @$(call install_link, policycoreutils, setfiles, /usr/sbin/restorecon) > endif > > ifdef PTXCONF_POLICYCOREUTILS_SESTATUS > -- > 2.47.3 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |