From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 21 Nov 2026 10:13:24 +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 1xUh9v-001k98-1v for lore@lore.pengutronix.de; Sat, 21 Nov 2026 10:13:24 +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 1xUh9v-00070i-6c; Sat, 21 Nov 2026 10:13:23 +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 1xUh9r-00070b-Sp for ptxdist@pengutronix.de; Sat, 21 Nov 2026 10:13:19 +0100 Received: from h1.cmg2.smtp.forpsi.com (h1.cmg2.smtp.forpsi.com [81.2.195.188]) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPS id 93E55200805 for ; Sat, 21 Nov 2026 10:13:19 +0100 (CET) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1795252399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=VxkWpUz/4IXY1718c52PCHHU9LdPonPEz3WbWC1DTeg=; b=N5Ww+9ByZgwZws15lBKIUXE/3RFa6KXb/dKc08CWoyK/86DdOEz3WfQQWXzr67jTo6sQzl UhLvxi3hJfjMzQlwIzE8y0sRL1OY7RNkGGyu4RCZSD/N2vGVYIlYZDADW5iHvKDa35pQRa +ll9Pjxnw+Cvv+Mt3M3LI0b9Tyt3+H/DE49mtY3IL6eFKYWmT0d1Fj/Yo0f92VULXhrLWg idsJZehk8n5rknvvgxim2MX1c7oOIM+DC6neQx9cUZZFWwbMMPYVbw42p9kmVPoFqAnDCI v1a07D5Tr/nffh2IP+TdZaJxn1N7dp5OIHAzQSbW1bhMVnepiNgFXN9tFswqkg== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1795252399; a=rsa-sha256; cv=none; b=aIlFOjSAUYeWxmtP5MoFhQiUt8QwqJQHv0QgBZCF3IojCuy6ogPAW4XxMbaYpyGIYAugZx G2erxtx1vUJ4YIxSQ63VPaO4923pbGtKCxQ9nDVP9xMRwa2lRtwGsuyzThk3OuyuYHvfdB xl7aDnSsyd2P+J46OunZ5gXQrHj5eJrIo6Pyz0jSWkzb2UECc++Bxa2Z7+0P6luyT7QMTv I7uKVe23LddwUa424OgsqhEUOU3H24apJEtBGG+XpVr2Mf0oA3X81SmKYKh0vOU5m/Bc+u fLEpRkNHPI9/7gBBSkarChVdoem7RQfJc79y5PdvJXG1pE7U0PKF8wRu7Kjpiw== ARC-Authentication-Results: i=1; mx1.white.stw.pengutronix.de; dkim=pass header.d=triops.cz header.s=f2019 header.b=LMMJegCr; spf=none (mx1.white.stw.pengutronix.de: domain of oss-lists@triops.cz has no SPF policy when checking 81.2.195.188) smtp.mailfrom=oss-lists@triops.cz; dmarc=none Received: from lenoch ([91.218.190.200]) by cmgsmtp with ESMTPSA id Uh9qxYvtq8HlqUh9rxT7WF; Sat, 21 Nov 2026 10:13:19 +0100 Date: Sat, 21 Nov 2026 10:13:18 +0100 From: Ladislav Michl To: ptxdist@pengutronix.de Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CMAE-Envelope: MS4xfOo3JbXzJw28XiU3UUXCmnZyBcEwB8dQxNqo/38e8w892v9FQGHzJJFzUQ7X1VTnBc3j6lWz0CWoGyIdoahVqnYuQYF4ZFE87FRWkf4ASbeSEOD2nt6p QsPo6cetXMRzu2rJ2uEFuX+o955l1leLU9D+XcayLImwmClqW/AV1M07H7M6flDTT6pHAidTpzfDQQ== X-Spamd-Result: default: False [-2.60 / 15.00]; BAYES_HAM(-3.00)[99.99%]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; R_DKIM_ALLOW(-0.20)[triops.cz:s=f2019]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24806, ipnet:81.2.192.0/18, country:CZ]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.996]; 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: 93E55200805 X-Rspamd-Server: mx1 X-Stat-Signature: xq7d5zdiad64ktszpn7dr3k58kb7rsse Subject: [ptxdist] [PATCH] pam: follow GLOBAL_SELINUX 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 Enable SELinux support when the global option is set. This builds pam_selinux and pam_sepermit, so install sepermit.conf and the unix_update and pwhistory_helper helpers used by pam_unix and pam_pwhistory under SELinux. Signed-off-by: Ladislav Michl --- rules/pam.in | 1 + rules/pam.make | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rules/pam.in b/rules/pam.in index efc6d95ef..f09ca1193 100644 --- a/rules/pam.in +++ b/rules/pam.in @@ -7,6 +7,7 @@ menuconfig PAM select HOST_MESON select LIBC_CRYPT select LIBTIRPC if PAM_NIS + select LIBSELINUX if GLOBAL_SELINUX help Linux-PAM (Pluggable Authentication Modules for Linux) is a suite of shared libraries that enable the local system administrator to diff --git a/rules/pam.make b/rules/pam.make index 607750ad5..dc4b7ec62 100644 --- a/rules/pam.make +++ b/rules/pam.make @@ -51,7 +51,7 @@ PAM_CONF_OPT := \ -Dpamlocking=false \ -Dpwaccess=disabled \ -Dread-both-confs=false \ - -Dselinux=disabled \ + -Dselinux=$(call ptx/endis, PTXCONF_GLOBAL_SELINUX)d \ -Duidmin=1000 \ -Dusergroups=false \ -Dxtests=false @@ -83,7 +83,12 @@ $(STATEDIR)/pam.targetinstall: @$(call install_alternative, pam, 0, 0, 0755, /usr/share/pam/security/namespace.init) @$(call install_alternative, pam, 0, 0, 0644, /usr/share/pam/security/pam_env.conf) @$(call install_alternative, pam, 0, 0, 0644, /usr/share/pam/security/time.conf) +ifdef PTXCONF_GLOBAL_SELINUX + @$(call install_alternative, pam, 0, 0, 0644, /usr/share/pam/security/sepermit.conf) + @$(call install_copy, pam, 0, 0, 0755, -, /usr/sbin/unix_update) + @$(call install_copy, pam, 0, 0, 0755, -, /usr/sbin/pwhistory_helper) +endif @$(call install_alternative, pam, 0, 0, 0755, /usr/sbin/mkhomedir_helper) @$(call install_alternative, pam, 0, 0, 0755, /usr/sbin/unix_chkpwd) -- 2.47.3