Bug#1078429: xinetd: sshd won't start from xinetd in OpenSSH 9.8p1-2

Colin Watson <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <ZrzHV-p-Myiyzz8O__41251.4046112605$1723647990$gmane$org@riva.ucam.org>
Control: forwarded -1 https://bugzilla.mindrot.org/show_bug.cgi?id=3717

On Sat, Aug 10, 2024 at 12:00:11PM +0200, Olivier wrote:
> I'd run strace to monitor xinetd process, and it's show:
> --
> 10887 11:12:02 write(2, "sshd requires execution with an absolute path\r\n",
> 47) = 47

Salvo, I'm not sure it's entirely true that nothing can be done with
xinetd here.  It would be possible to have it pass the full path in
argv[0], as the patch in https://bugs.gentoo.org/936041 suggests.  It's
arguably a bit silly and unnecessary for it to strip the directory part
from argv[0]; shells don't do that, for example.

Anyway, I've forwarded this to
https://bugzilla.mindrot.org/show_bug.cgi?id=3717, since it doesn't look
as though anyone had got around to reporting this upstream yet, and
since it's not 100% clear to me what the correct fix should be although
I have a couple of possible ideas.

I've also written an autopkgtest for this, so once we fix it, it
shouldn't come back in testing.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.