]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
sshd: don't use argv[0] as PAM service name
authorDamien Miller <djm@mindrot.org>
Thu, 13 Jun 2024 06:41:29 +0000 (16:41 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 13 Jun 2024 06:41:29 +0000 (16:41 +1000)
commita8fbe2f7d0d96d299ee8e69769e3b51067978748
tree2134ff7b3edcbd21cdecf53b5cf08c8738166dc5
parentbf204bd05c3ae650f87e2b96527688579f59774c
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.
auth-pam.c