Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24323855rwd; Sat, 1 Jul 2023 17:50:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWubaIbl67kOd7EOubD6JzmfIip1m0qQJZEyP3C4UqwXusf6NkNXkw3NdZtA57Om3rGRNa X-Received: by 2002:a17:902:da92:b0:1b6:6e3a:77fb with SMTP id j18-20020a170902da9200b001b66e3a77fbmr7778102plx.2.1688259030298; Sat, 01 Jul 2023 17:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688259030; cv=none; d=google.com; s=arc-20160816; b=ep+leITYzTqxop/zuWWT21nHejOQOnt9bZiXRpwPgQ0tvzcr97JhMP9nUDb40sJpkk OSOIPN8KrHx6wPED2j60X2wIFdOOVFy5yu1OiLYTcKNsFEhS/pDKqCNl0pnciaw6Xdt7 mpLv/SNaYVPNvEsjFe9VDXcEZoc8/xRSRW+3nWycw6nD14ii3lerjZS7PDCLFQCRzRx0 3USA+sB6rHQ7nb9AyhOMp+1WVZpY4V9BeROfSF0Y2OYWF4+RhAF9CF4bCZ0QISQLIP/z A8c1PjQnaLdUHzsnZtJ7pnpV4b3F+3HEaW3h6WMLn/j/VW4RtelG+jLon9kQsbOgv6VS 2Tqg== 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=aRs+qS4s1Iw/1RkbmPiRrrwdvS3oT4y035TfBgfr8Mc=; fh=pzQzM1sICqpkXKMiyGIIk5OBbX+z9idn10hNVauiD0A=; b=ROlybqiPLEoT2vKo6IYxo7RWHAcwUza6GF0et/saTFaJ05c7ZXJUP2PrLDrQaYezHN p27EFNNY3xEyQcryaro85SIJBHhO0u3nunDWbvf5yidtq8Hm+IqffNWQGxPQCZ/tTr9F p3EpgvCdfz8cwJxC0ei92MBhG6Wbnb07HTNTBwashTpXnrdvhiS/qFfBfIMh/PG+WCch cdOjh6c8WzNY4JoN4fFWXhDX5cjskvj9HxaygLV4rpeBtSTCtBTTBJ72rwJ6W6sPKfjd yGZw8epfSjdHs9TEckbVsdb1oJAGWdAH89aMf0tGt9KuvQcRA6ezno0Zh2mBBkeGZEZr 1SOw== 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 m10-20020a1709026bca00b001a51368b098si14889494plt.209.2023.07.01.17.50.02; Sat, 01 Jul 2023 17:50:30 -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 S229820AbjGBAA1 (ORCPT + 99 others); Sat, 1 Jul 2023 20:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjGBAA0 (ORCPT ); Sat, 1 Jul 2023 20:00:26 -0400 Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0561725; Sat, 1 Jul 2023 17:00:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 94F2620152; Sun, 2 Jul 2023 02:00:23 +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 0-p4yNMqCa8e; Sun, 2 Jul 2023 02:00:23 +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 6F70C20151; Sun, 2 Jul 2023 02:00:23 +0200 (CEST) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1qFkVr-003nZe-0E; Sun, 02 Jul 2023 02:00:23 +0200 Date: Sun, 2 Jul 2023 02:00:23 +0200 From: Samuel Thibault To: Kees Cook Cc: 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: <20230702000022.iozn7lmvy2ihygdc@begin> Mail-Followup-To: Samuel Thibault , 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> <202306280930.8CBBB9B@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202306280930.8CBBB9B@keescook> 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_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Kees Cook, le mer. 28 juin 2023 09:32:20 -0700, a ecrit: > On Wed, Jun 28, 2023 at 08:07:16AM +0200, Samuel Thibault wrote: > > Kees Cook, le mar. 27 juin 2023 19:48:45 -0700, a ecrit: > > > > Really, this a serious regression for the people affected by this. > > > > > > Can you send a patch adding a CAP_SYS_ADMIN exception? > > > > Sure! > > Thanks! (And be sure to use file->f_cred for the check[1], not "current", > that way brltty can open the tty and drop caps and still do the ioctl.) Actually brltty re-opens the various tty[1-6] consoles when the users switches, so I kept just testing capable(CAP_SYS_ADMIN). Samuel