NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/58412: ssh update breaks sshd



The following reply was made to PR bin/58412; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/58412: ssh update breaks sshd
Date: Wed, 10 Jul 2024 12:57:22 +0000 (UTC)

 In our src/crypto/external/bsd/openssh/dist/auth-pam.c, we have:
 
 #define SSHD_PAM_SERVICE		getprogname()
 
 but, in one of the commit messages leading to 9.8, we read:
 
 ```
 commit a8fbe2f7d0d96d299ee8e69769e3b51067978748
 Author: Damien Miller <djm%mindrot.org@localhost>
 Date:   Thu Jun 13 16:41:29 2024 +1000
 
      sshd: don't use argv[0] as PAM service name
 
      sshd would implicitly use argv[0] as the PAM service name to
      allow people to select different PAM service names by making
      differently-named copies/links to the sshd binary.
 
      Splitting sshd into sshd/sshd-session broke this, as the process
      that starts PAM is always sshd-session and the user has no control
      over this.
 
      Hardcode "sshd" as the default PAM service name unless/until we
      figure out a better way. Should unbreak OSX integration tests.
 ```
 
 So, hard-code it to "sshd" or set a `PAMServiceName "sshd"' in sshd_config
 as an override.
 
 -RVP
 


Home | Main Index | Thread Index | Old Index