Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936041 - sys-apps/xinetd: >=net-misc/openssh-9.8 ssh server ask for an absolute path
Summary: sys-apps/xinetd: >=net-misc/openssh-9.8 ssh server ask for an absolute path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-07-14 13:59 UTC by Jimmy.Jazz
Modified: 2024-10-29 01:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xinetd-2.3.15.4-openssh-absolute-path.patch (xinetd-2.3.15.4-openssh-absolute-path.patch,397 bytes, patch)
2024-07-14 14:01 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)