[openssh-commits] [openssh] branch V_10_4 updated: Re-allow PAMServiceName inside a Match block.
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Aug 6 23:34:16 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch V_10_4
in repository openssh.
The following commit(s) were added to refs/heads/V_10_4 by this push:
new 6789420d1 Re-allow PAMServiceName inside a Match block.
6789420d1 is described below
commit 6789420d136fe195f31dd83d0f3cf5fa6d0ef96d
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Thu Aug 6 23:30:30 2026 +1000
Re-allow PAMServiceName inside a Match block.
This is documented to be allowed, and was up until 10.4p1 when a
transcription error in the config handling rework reverted it to
global-only, ie not allowed inside Match. bz#3987.
---
servconf.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/servconf.h b/servconf.h
index a2345e88a..3648e2be1 100644
--- a/servconf.h
+++ b/servconf.h
@@ -273,11 +273,11 @@ SSHCONF_ALIAS(KeepAlive, TCPKeepAlive, SSHCFG_GLOBAL)
#ifdef USE_PAM
#define SSHD_CONFIG_ENTRIES_PAM \
SSHCONF_INTFLAG(use_pam, UsePAM, SSHCFG_GLOBAL, 0, SSHCFG_COPY_NONE) \
-SSHCONF_STRING(pam_service_name, PAMServiceName, SSHCFG_GLOBAL, SSHCFG_COPY_NONE)
+SSHCONF_STRING(pam_service_name, PAMServiceName, SSHCFG_ALL, SSHCFG_COPY_NONE)
#else
#define SSHD_CONFIG_ENTRIES_PAM \
SSHCONF_UNSUPPORTED_INT(use_pam, UsePAM, SSHCFG_GLOBAL) \
-SSHCONF_UNSUPPORTED_STRING(pam_service_name, PAMServiceName, SSHCFG_GLOBAL)
+SSHCONF_UNSUPPORTED_STRING(pam_service_name, PAMServiceName, SSHCFG_ALL)
#endif
#ifdef DISABLE_LASTLOG
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list