public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top
Subject: Re: [PATCH 3/4] test/passt.mbuto: Install sshd-session OpenSSH's split process
Date: Mon, 26 Aug 2024 09:55:50 +0200	[thread overview]
Message-ID: <20240826095550.4ece4c8b@elisabeth> (raw)
In-Reply-To: <Zswjk90_zk6eK4Ef@zatzit.fritz.box>

On Mon, 26 Aug 2024 16:41:23 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Tue, Aug 20, 2024 at 01:14:33AM +0200, Stefano Brivio wrote:
> > OpenSSH now ships a per-session binary, sshd-session, with sshd
> > acting as mere listener. It's typically not found in $PATH, so specify
> > the whole path at which it's commonly installed in $PROGS.
> > 
> > Link: https://www.openssh.com/releasenotes.html#9.8p1
> > Signed-off-by: Stefano Brivio <sbrivio@redhat.com>  
> 
> Oops.  I reviewed by sight, but didn't test.
> 
> This breaks completely if you still have an older ssh without
> sshd-session.  That includes running on Fedora 40 as of today.

Oops, I forgot to check this on Fedora 40, and I see it's actually at
/usr/libexec/openssh/sshd-session on Fedora Rawhide.

> I'm not immediately sure how to fix this within mbuto's constraints.

Well, the profile files are shell scripts as well, so we can just look
for sshd-session in both places, and add it to $PROGS only if we find
it. I can test and send a patch in a bit.

> > ---
> >  test/passt.mbuto | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/test/passt.mbuto b/test/passt.mbuto
> > index 4abaafc..61865e8 100755
> > --- a/test/passt.mbuto
> > +++ b/test/passt.mbuto
> > @@ -13,7 +13,8 @@
> >  PROGS="${PROGS:-ash,dash,bash ip mount ls insmod mkdir ln cat chmod lsmod
> >         modprobe find grep mknod mv rm umount jq iperf3 dhclient hostname
> >         sed tr chown sipcalc cut socat dd strace ping tail killall sleep sysctl
> > -       nproc tcp_rr tcp_crr udp_rr which tee seq bc sshd ssh-keygen cmp}"
> > +       nproc tcp_rr tcp_crr udp_rr which tee seq bc sshd ssh-keygen cmp
> > +       /usr/lib/openssh/sshd-session}"
> >  
> >  KMODS="${KMODS:- virtio_net virtio_pci vmw_vsock_virtio_transport}"
> >    
> 

-- 
Stefano


  reply	other threads:[~2024-08-26  7:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 23:14 [PATCH 0/4] Assorted test fixes for i386/i686 and OpenSSH 9.8 Stefano Brivio
2024-08-19 23:14 ` [PATCH 1/4] test/lib/setup: Transform i686 kernel architecture name into QEMU name (i386) Stefano Brivio
2024-08-20  0:45   ` David Gibson
2024-08-19 23:14 ` [PATCH 2/4] test/passt.mbuto: Run sshd from vsock proxy with absolute path Stefano Brivio
2024-08-20  0:45   ` David Gibson
2024-08-19 23:14 ` [PATCH 3/4] test/passt.mbuto: Install sshd-session OpenSSH's split process Stefano Brivio
2024-08-20  0:46   ` David Gibson
2024-08-26  6:41   ` David Gibson
2024-08-26  7:55     ` Stefano Brivio [this message]
2024-08-26  8:21       ` David Gibson
2024-08-19 23:14 ` [PATCH 4/4] test: Duplicate existing recvfrom() valgrind suppression for recv() Stefano Brivio
2024-08-20  0:46   ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240826095550.4ece4c8b@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).