]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Don't try to use sudo inside sshd log wrapper.
authordtucker@openbsd.org <dtucker@openbsd.org>
Tue, 31 Oct 2023 04:15:40 +0000 (04:15 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 31 Oct 2023 04:35:53 +0000 (15:35 +1100)
commitfb06f9b5a065dfbbef5916fc4accc03c0bf026dd
treebf254a4d4b7df44f537a0170d7619e8caf47a5de
parentfc3cc33e88c242c704781c6c48087838f1dcfa2a
upstream: Don't try to use sudo inside sshd log wrapper.

We still need to check if we're using sudo since we don't want to chown
unecessarily, as on some platforms this causes an error which pollutes
stderr. We also don't want to unnecessarily invoke sudo, since it's
running in the context of the proxycommand, on *other* platforms it
may not be able to authenticate, and if we're using SUDO then it should
already be privileged.

OpenBSD-Regress-ID: 70d58df7503db699de579a9479300e5f3735f4ee
regress/test-exec.sh