Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4781494rwb; Tue, 8 Aug 2023 13:51:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcXmVdrNNO4nFX0orjPbE/tVgYILNsK6jhhMhYDONIS9pjVc9GEpzE0KKFbp84X4Bc8/vi X-Received: by 2002:a17:907:762d:b0:98d:5ae2:f1c with SMTP id jy13-20020a170907762d00b0098d5ae20f1cmr561207ejc.34.1691527898439; Tue, 08 Aug 2023 13:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691527898; cv=none; d=google.com; s=arc-20160816; b=ybP1gi++STqtR1/OCmzroMfj7lBBWwkSJ+hBG6b21PEfP1jIzBNKR2s4T64OFUTssq zpksa7Xxs3XFTh0pyqYs6w6Bbg3qBAYCRXhPKMU87+dTEzqqxg/jD1Q1+ktc+nIk1iyO bZZ1/mpNmhIDF/O+vaM15ljoKWr1F/R/NmCFTKqTEhrPbz97tJ6eFL/ikD5pg2Ex3okD JTYvPyzYo9BIcj15aWZcEMGaDOIMmIQdKBZm5Xv7OXEH7UhG3HrydUU1/JX3czk1BH78 UjOIYQVvlZPRdJ0gU6GJmNjvJ6ag5XwbYEGLCPgY/gSeSJoJyc6QEq1B4LXqIgiUKJxp 92Dg== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=nwi/KRa0tOsqMGcskHNxjr/l5GreHCMGm1cUg5RagX4=; fh=S5Sv02wmr0yFxhbh1GmK96MO1pWLyRFuKQJhqGjuSiM=; b=0dbIvoGjNqTEycaABgKouPB+t2M5hxDvV4JfBZpfBabS0AR3Z1qpGTsZsAO4cPpCjS KJjrE4XyGdRCHy7BHUHRQN5nxdIfYqMLUuF8sJuiSMu9tVg7NqupfQr0T9/XZo4qAcGR CIHd0dSZs6ilKpRJjH/wiwr6w9hOj3GNihmil/hNS3pgEhqmCfhVYnrnXs/drANq3W5n gDFVTpZWJ827a6BB8d69bX/lj6RNgJtZyUJs8hZnnZuaYM/kguXhuLFx0EZa06rpNy0c OYtYCHTspJP3pSZafQ/BI81lDkoUSVEoMJ5quqH4UlGjPcYQ/aoQ9pXXbMfCMWpUcK0k k0fQ== 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 i11-20020a1709064ecb00b00992a8a54f2fsi8836300ejv.368.2023.08.08.13.51.13; Tue, 08 Aug 2023 13:51:38 -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 S233878AbjHHUnC (ORCPT + 99 others); Tue, 8 Aug 2023 16:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235897AbjHHUmh (ORCPT ); Tue, 8 Aug 2023 16:42:37 -0400 Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 041AE11CF8; Tue, 8 Aug 2023 13:17:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id EF65A20127; Tue, 8 Aug 2023 22:17:13 +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 TP2rFcRwTC_Y; Tue, 8 Aug 2023 22:17:13 +0200 (CEST) Received: from begin (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 9E9482011A; Tue, 8 Aug 2023 22:17:12 +0200 (CEST) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1qTT8i-0021rK-0T; Tue, 08 Aug 2023 22:17:12 +0200 Date: Tue, 8 Aug 2023 22:17:12 +0200 From: Samuel Thibault To: =?utf-8?Q?G=C3=BCnther?= Noack Cc: Kees Cook , Greg Kroah-Hartman , Randy Dunlap , Jiri Slaby , Simon Brand , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] TIOCSTI: Document CAP_SYS_ADMIN behaviour in Kconfig Message-ID: <20230808201712.efl6vbtsuy57b64d@begin> Mail-Followup-To: Samuel Thibault , =?utf-8?Q?G=C3=BCnther?= Noack , Kees Cook , Greg Kroah-Hartman , Randy Dunlap , Jiri Slaby , Simon Brand , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org References: <20230808201115.23993-1-gnoack3000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230808201115.23993-1-gnoack3000@gmail.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 Günther Noack, le mar. 08 août 2023 22:11:12 +0200, a ecrit: > Clarifies that the LEGACY_TIOCSTI setting is safe to turn off even > when running BRLTTY, as it was introduced in commit 690c8b804ad2 > ("TIOCSTI: always enable for CAP_SYS_ADMIN"). > > Signed-off-by: Günther Noack Reviewed-by: Samuel Thibault > --- > drivers/tty/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig > index 341abaed4ce..069de553127 100644 > --- a/drivers/tty/Kconfig > +++ b/drivers/tty/Kconfig > @@ -164,6 +164,9 @@ config LEGACY_TIOCSTI > userspace depends on this functionality to continue operating > normally. > > + Processes which run with CAP_SYS_ADMIN, such as BRLTTY, can > + use TIOCSTI even when this is set to N. > + > This functionality can be changed at runtime with the > dev.tty.legacy_tiocsti sysctl. This configuration option sets > the default value of the sysctl. > -- > 2.41.0 >