Re: [PATCH] Secure login and sulogin on S390x

"Dr. Werner Fink" <[email protected]> Tue, 5 May 2026 11:39:41 +0200
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
--qrXG9ok1cYkYRYof
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Date: Tue, 5 May 2026 11:39:41 +0200
From: "Dr. Werner Fink" <[email protected]>
To: Chris Hofstaedtler <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] Secure login and sulogin on S390x

On 2026/05/04 20:53:30 +0200, Chris Hofstaedtler wrote:
> * Werner Fink <[email protected]> [260429 11:30]:
> > Some remarks: on S390x architecture of modern zSeries the hypervisor
> > does log the console I/O.  For both the 3215 half duplex line mode as
> > well as the 3270 full-screen/block mode console type the I/O is logged
> > on the hypervisor's side.  To control this there are command send via
> > /dev/vmcp to tell the  z/VM control program of the hypervisor not to
> > log during entering the password.  For the 3215 console also automatic
> > scroll is enabled which avoid to press CLEAR to get the password prompt
> > if on the next block.
>=20
> [..]
> > 9 files changed, 436 insertions(+), 12 deletions(-)
>=20
> This seems to add a lot of code to util-linux. I was wondering if sulogin=
 is
> the only place that needs this log filtering. What about su, sudo, doas a=
nd
> so on? Note that there are different su (and probably doas) versions in u=
se
> across distributions.
>=20
> Wouldn't it be better if the hypervisor would not log input if the termin=
al
> output was disabled? That seems like behaviour commonly found in other
> virtual terminal emulators.
>=20
> Best,
> Chris

Maybe other hypervisors have the same behaviour.  Nevertheless the
3215 console is half duplex printer like a punchcard based teletypewriter
running within the hypervisor of an zSystem firmware.  Means every zOS and
Linux instances are VMs on such zSystem.  The 3270 console type is a bit
better as it understands escape sequences and is a block mode console type,
but still you have primitiv local prompt within the hypervisor and not on
the linux side its self.   You can compare this with qemu within virt-manag=
er,
but AFAIK qemu does not log keystrokes.

The vmcp.c is a copy of the version I use for my blogd in the showconsole
project at https://github.com/bitstreamout/showconsole

Werner

--=20
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

--qrXG9ok1cYkYRYof
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQJgBAABCABKFiEEGwa/WjgpkPvLonW+UOkNVR3Bay4FAmn5ut0sFIAAAAAAFQAO
cGthLWFkZHJlc3NAZ251cGcub3Jnd2VybmVyQHN1c2UuZGUACgkQUOkNVR3Bay70
Iw/+PXZ5Vm2dUQXqFoG14tleZj3ZGXHkeHTY/vlMMQ2WF1KxrF6wLh45MCELjvUt
nvu+VGn89vodJIAnp96q0QMWTYjbiuc8V+Zqz4QUyRea61Z9/gU/jhUIz6UAXWv8
RXMl8Qp1cdDqEn6UcjLoN2Vsqfg3Kd5XZDoNMVoUsjZc+zcI+8OUJHOx3bXKkknk
+npt94gpNjDkI6xIC8zoUDFq16ch9kEnoSiPFu8arwgO+wqBHn9h+oKv74v3EKKO
iZUp1NAy9e6sIyavGL5NLYIkn4MU2XxoCVwNP6/QxQkWmTzXltc03rEdKQFSONMG
YybZzICBKs96UN2PQXl4Wy+S8RI6doZp354uBoh4oV6G6+qSV60zgpAKIkwG5/J9
a8vsYc0y2cli+WCwmLYlHlhltoDmjNCIxgR24XpU6PSUKCNV3g0j9rTcq1IdqFOW
X7HVRvnWrfKm/VLySzs2aH3JqBM+V2aZ8izjOttlPg2vL6129RHv7/dmJuKU4OHH
73m9No6m4orL5H1gYHq12J5gXGSQ814Au0F+/WUadCKk1dwyt6RIOj4zqFiABTXa
gtIMipNadjr3l/aqplQVOs+a9pVPCNCGLD7u9dI1C0bmAj6T9MN1yTJANc4uk6Gb
FXs7ytewvtz7uyKA/zbUvrh8JZiBNQbtHsQ2gis+DASoESg=
=zgqy
-----END PGP SIGNATURE-----

--qrXG9ok1cYkYRYof--