Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936041

Summary: sys-apps/xinetd: >=net-misc/openssh-9.8 ssh server ask for an absolute path
Product: Gentoo Linux Reporter: Jimmy.Jazz
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major CC: Jimmy.Jazz, syrjala
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/openSUSE/xinetd/issues/46
https://bugzilla.mindrot.org/show_bug.cgi?id=3717
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xinetd-2.3.15.4-openssh-absolute-path.patch

Description Jimmy.Jazz 2024-07-14 13:59:08 UTC
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
Comment 1 Jimmy.Jazz 2024-07-14 14:01:19 UTC
Created attachment 897591 [details, diff]
xinetd-2.3.15.4-openssh-absolute-path.patch
Comment 2 Ville Syrjala 2024-10-11 17:25:25 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2024-10-14 00:33:31 UTC
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(+)