]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Split per-connection sshd-session binary
authordjm@openbsd.org <djm@openbsd.org>
Mon, 14 Oct 2024 01:57:50 +0000 (01:57 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 14 Oct 2024 03:01:37 +0000 (14:01 +1100)
commit6072e4c9385713e9c166f32cfca6a7e603d4f0b8
treeea07b20ea04f48014ec2b958b432e3b6fc0b3b18
parentfe6c6330c1a94c7a537efe9069853ce7a275c50a
upstream: Split per-connection sshd-session binary

This splits the user authentication code from the sshd-session
binary into a separate sshd-auth binary. This will be executed by
sshd-session to complete the user authentication phase of the
protocol only.

Splitting this code into a separate binary ensures that the crucial
pre-authentication attack surface has an entirely disjoint address
space from the code used for the rest of the connection. It also
yields a small runtime memory saving as the authentication code will
be unloaded after thhe authentication phase completes.

Joint work with markus@ feedback deraadt@

Tested in snaps since last week

OpenBSD-Commit-ID: 9c3b2087ae08626ec31b4177b023db600e986d9c
22 files changed:
Makefile.in
log.c
monitor.c
monitor.h
monitor_wrap.c
monitor_wrap.h
pathnames.h
sandbox-capsicum.c
sandbox-darwin.c
sandbox-null.c
sandbox-pledge.c
sandbox-rlimit.c
sandbox-seccomp-filter.c
sandbox-solaris.c
sandbox-systrace.c
servconf.c
servconf.h
session.c
ssh-sandbox.h
sshd-auth.c [new file with mode: 0644]
sshd-session.c
sshd.c