Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20763184rwd; Thu, 29 Jun 2023 06:49:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+Hwv5cX1RMO+Mt7Q8XYBzUmXQ3FgEyUk+moIphbcw7hPIUJTfzRnmbOlS4jq+jS7OhE4+ X-Received: by 2002:a17:902:e888:b0:1b0:4c6c:716 with SMTP id w8-20020a170902e88800b001b04c6c0716mr5330445plg.4.1688046573950; Thu, 29 Jun 2023 06:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688046573; cv=none; d=google.com; s=arc-20160816; b=oETsiZalDEtwdyHj6qT8MhcA/swEbZ8WFC1Y5kAV1bNumo7cyD0BWCC/6U+hB6P2oZ GbqhV6d/IYc/grnbeLRhFJ7fAGteYvVh+7rYxtrmcGwcpUp4osbvAGXkEFh0QyHer9Jr y1pAmtga+Y+iHGn6IgVikkRetZR5ZQ5/nF8H2DTkzjZTrUK+ZbsWBcHagclnjoft+TJr hulsAPJCH1ZDWfamzPnQMphCSDVDgbAqYnI01xM/0+L9vTRhLKUqEQn7xQh+X2k9y7Hb fhH21L41djn9ZInEHEpYJhExFOJK6iUmYxQOa6rcpfvfy8hUMvQZe0UOtpT7mUmmIkYi GBSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=TbSYu86LxE0ofyipqcsP4L1w2GFDtcZtOq4L5d2ft9Q=; fh=wHNgCC+dtLkey1vlFuMNDNw9edrvyiWIQRWQKXnxVmA=; b=TQFOrqKZfgN1cWztWy0F6GUQUDFbVVmQEincoUe8EcX4BF3cSYlfeaI78SFi0ikgDW hV9TSQvNSv107bBxDORkKswpSQbshLdMaZuyhgBOVxSKy81yqCChB4oqy1hph8OBdhIU 9WuwXn305QA0myKfqGB3382WCemIjLE6burGOGsoMNO2zf/DuPYAX1DASSa76JdnlChJ k39j2bs1nUPvTL0+Zsh5aPO2YyvldmgBg3Et1zSq6fsQfxGvG9/sZbemAoIAW6QswUbe pg8qWKKXbk17UE0Iqe8eZL897bsIRkm+4wZHArW0bYalB31iReSCcR2uMafTYVe+LhOb flWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h187-20020a636cc4000000b0055795190dd2si9912473pgc.666.2023.06.29.06.49.20; Thu, 29 Jun 2023 06:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjF2Ncu (ORCPT + 99 others); Thu, 29 Jun 2023 09:32:50 -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) X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RDNS_NONE,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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