sshd -i execve call fails without an absolute path despite 'server' cmd for the service. openssh check and refuse a relative path when executing the server. Reproducible: Always Steps to Reproduce: 1.# sshd -i sshd requires execution with an absolute path 2. 3. Actual Results: fails
Created attachment 897591 [details, diff] xinetd-2.3.15.4-openssh-absolute-path.patch
The regression appears to have been fixed in upstream openssh: https://bugzilla.mindrot.org/show_bug.cgi?id=3717 https://anongit.mindrot.org/openssh.git/commit/?id=c21c3a2419bbc1c59cb1a16ea356e703e99a90d9 https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/sshd.c.diff?r1=1.610&r2=1.611 Presumably net-misc/openssh should just pick up that patch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ff29f1f5dae616c553e71d04c7a8cc2470ff824 commit 6ff29f1f5dae616c553e71d04c7a8cc2470ff824 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-14 00:30:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-14 00:30:52 +0000 net-misc/openssh: fix compat w/ xinetd Backport upstream fix from OpenSSH to fix compat w/ xinetd. Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=3717 Bug: https://github.com/openSUSE/xinetd/issues/46 Closes: https://bugs.gentoo.org/936041 Signed-off-by: Sam James <sam@gentoo.org> net-misc/openssh/files/openssh-9.8_p1-inetd.patch | 25 ++ net-misc/openssh/openssh-9.8_p1-r3.ebuild | 436 ++++++++++++++++++++++ 2 files changed, 461 insertions(+)