From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE9EBEB64DC for ; Thu, 29 Jun 2023 13:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbjF2Ncr (ORCPT ); Thu, 29 Jun 2023 09:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbjF2Nck (ORCPT ); Thu, 29 Jun 2023 09:32:40 -0400 Received: from sonata.ens-lyon.org (unknown [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 422B53583; Thu, 29 Jun 2023 06:32:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id A599F20103; Thu, 29 Jun 2023 15:32:20 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 117FFccbxKwj; Thu, 29 Jun 2023 15:32:20 +0200 (CEST) Received: from begin.home (lfbn-bor-1-1163-184.w92-158.abo.wanadoo.fr [92.158.138.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 40424200FD; Thu, 29 Jun 2023 15:32:20 +0200 (CEST) Received: from samy by begin.home with local (Exim 4.96) (envelope-from ) id 1qErkx-009h1v-25; Thu, 29 Jun 2023 15:32:19 +0200 Date: Thu, 29 Jun 2023 15:32:19 +0200 From: Samuel Thibault To: David Laight Cc: Kees Cook , Kees Cook , Greg Kroah-Hartman , Jiri Slaby , Simon Brand , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "Dave@mielke.cc" Subject: Re: [PATCH v3 2/2] tty: Allow TIOCSTI to be disabled Message-ID: <20230629133219.5z667lt6pz25exkf@begin> Mail-Followup-To: Samuel Thibault , David Laight , Kees Cook , Kees Cook , Greg Kroah-Hartman , Jiri Slaby , Simon Brand , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "Dave@mielke.cc" References: <20221022182828.give.717-kees@kernel.org> <20221022182949.2684794-2-keescook@chromium.org> <20221227234000.jgosvixx7eahqb3z@begin> <20221228205726.rfevry7ud6gmttg5@begin> <20230625155625.s4kvy7m2vw74ow4i@begin> <202306271944.E80E1D0@keescook> <20230628060716.vvgtlgbushyjh6km@begin> <55c209a024a94d1f9c6af85dfddb11a0@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55c209a024a94d1f9c6af85dfddb11a0@AcuMS.aculab.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org David Laight, le jeu. 29 juin 2023 13:23:54 +0000, a ecrit: > From: Samuel Thibault > > Sent: 28 June 2023 07:07 > ... > > > So is there really no solution for brltty and TIOCSTI being disabled? > > > > No, there is no way to simulate characters on the Linux console. The > > alternative would be to use uinput, but that simulates keycodes, not > > characters, thus requiring backtranslating first, which is very fragile. > > It could probably be rewritten to use a pseudo-tty pair. That's what yasr does for instance, but that does not make the login prompt accessible, which is a must (just like sighted users don't log in blindly...) Samuel