[openssh-commits] [openssh] branch master updated: Re-allow PAMServiceName inside a Match block.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Aug 6 23:33:48 AEST 2026


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 4c414d99f Re-allow PAMServiceName inside a Match block.
4c414d99f is described below

commit 4c414d99f3a8c2b3d24ee8448b8a388446531ebb
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