Date: Wed, 9 Feb 2022 12:56:49 +0100 From: Michael Gmelin <grembo@freebsd.org> To: Alexander Leidinger <Alexander@leidinger.net> Cc: hackers@freebsd.org Subject: Re: Behavior of /dev/pts in a jail? Message-ID: <77267259-0758-4C04-867D-77A896D133E4@freebsd.org> In-Reply-To: <20220209113737.Horde.8QntfZV4xEkYdmHjXMgCpHN@webmail.leidinger.net> References: <20220209113737.Horde.8QntfZV4xEkYdmHjXMgCpHN@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 9. Feb 2022, at 11:38, Alexander Leidinger <Alexander@leidinger.net> wr= ote: >=20 > =EF=BB=BFQuoting Michael Gmelin <grembo@freebsd.org> (from Tue, 8 Feb 2022= 13:37:32 +0100): >=20 >> I've seen a similar problem with jails running on top of bhyve (in that >> case, doing ssh wouldn't work). >>=20 >> The solution back then was to add ttyu* to devfs rules _before_ starting >> the jail: >>=20 >> devfs rule -s 3 add 3250 path "ttyu*" unhide >>=20 >> Not sure if what you're seeing is related, but it feels a bit like that. >>=20 >> See also >> https://lists.freebsd.org/archives/freebsd-current/2021-August/000409.htm= l >=20 > I tried that now. It doesn't help. I'm not really surprised, as there is n= o ttyu* device visible on the host itself (serial devices disabled in bios).= >=20 > Bye, > Alexander. >=20 Hi Alex, I was able to reproduce the issue locally. The problem is caused by jexec inheriting the pty from the jail host. If you use a pty that was created inside of the jail, gpg-agent/pinentry wor= ks as expected. This can be accomplished, e.g., by running tmux inside of the jail: jexec gpgtest pkg install tmux tmux gpg --gen-key Running sshd inside of the jail and connecting to it using ssh has the same e= ffect. Cheers Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77267259-0758-4C04-867D-77A896D133E4>