upstream: Start the process of splitting sshd into separate
commit03e3de416ed7c34faeb692967737be4a7bbe2eb5
authordjm@openbsd.org <djm@openbsd.org>
Fri, 17 May 2024 00:30:23 +0000 (17 00:30 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 17 May 2024 04:41:35 +0000 (17 14:41 +1000)
tree6794217dbc0a1369e9d6e1b0a9f40534596a6648
parent1c0d81357921f8d3bab06841df649edac515ae5b
upstream: Start the process of splitting sshd into separate

binaries. This step splits sshd into a listener and a session binary. More
splits are planned.

After this changes, the listener binary will validate the configuration,
load the hostkeys, listen on port 22 and manage MaxStartups only. All
session handling will be performed by a new sshd-session binary that the
listener fork+execs.

This reduces the listener process to the minimum necessary and sets us
up for future work on the sshd-session binary.

feedback/ok markus@ deraadt@

NB. if you're updating via source, please restart sshd after installing,
otherwise you run the risk of locking yourself out.

OpenBSD-Commit-ID: 43c04a1ab96cdbdeb53d2df0125a6d42c5f19934
33 files changed:
auth-pam.c
auth-pam.h
auth-rhosts.c
auth.c
auth.h
auth2-gss.c
auth2-hostbased.c
auth2-kbdint.c
auth2-none.c
auth2-passwd.c
auth2-pubkey.c
auth2.c
channels.c
kex.c
kex.h
kexgexs.c
misc.c
misc.h
monitor.c
monitor.h
monitor_wrap.c
monitor_wrap.h
msg.c
packet.c
packet.h
pathnames.h
servconf.c
servconf.h
serverloop.c
session.c
ssh_api.c
sshd-session.c [copied from sshd.c with 51% similarity]
sshd.c