be really strict with fds reserved for communication with the separate
authordjm <djm@openbsd.org>
Sat, 1 Jun 2024 07:03:37 +0000 (07:03 +0000)
committerdjm <djm@openbsd.org>
Sat, 1 Jun 2024 07:03:37 +0000 (07:03 +0000)
commita278ca99442dc76d54298316b50484530cd9c2bd
treed1434baa9993a173c103d5625231339b26b9188f
parentaec57fdb8140b5d07a7706ec8127707f7b9587c5
be really strict with fds reserved for communication with the separate
sshd-session process - reserve them early and fatal if we can't dup2(2)
them later. The pre-split fallback to re-reading the configuration
files is not possible, so sshd-session absolutely requires the fd the
configuration is passed over to be in order.

ok deraadt@
usr.bin/ssh/sshd.c