Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp309527rwd; Wed, 17 May 2023 19:11:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5VhVRCbB4fn28IWAVIkiyw7ZvZ1kOUFK3ohHWPCuu6vGuikQH7J5f9sgAWZVWdevehyCYU X-Received: by 2002:a17:902:ec8a:b0:19f:87b5:1873 with SMTP id x10-20020a170902ec8a00b0019f87b51873mr907921plg.62.1684375905039; Wed, 17 May 2023 19:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684375905; cv=none; d=google.com; s=arc-20160816; b=nnG2Q/LxBb5sI2GtfLwnN2FDJCwRBKNgNXFyMh9z5mE0++9BSrvG6DeznbzL2VtKwf I3otGtbW49Op5YmLFy+UBS2/at4pqFOJT/GtfJR2uETAU4QaGih8rxAiu9/6RReijaHN DcaXJtDpGtwjsQJHiVMnH0113I60dD1jqGoWyJZB5U7QoyaJ+5kIvApHF2Q1wBr9muIQ EzUW1DPx2tmDicmHFjS12y2GEj1nPd2y4MIEDF6VB0H2ixvRvyXLrOP8fzPzr3XrzYDe JvBdXhcK2avP9eTJ+3wT5xZBWp9HzBv4a0q+DAvUa4hPFhvfqVlzPLQFZn0IphPNYe+H bejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=A4Tr1iwEyYU1J0FjQyp5EMBgPt9xQaeZCnSqhIV5XRc=; b=JB4JyEoIGukoy7y5lEs+uVYCqJe4M+RoA5OsLdISmPsGJFx/Uf5wHfwXyQqHNjkwe2 gfek5N+Y8Mgm3Rx6vqsZcDKTdyGmcy/V4fXIOSgqhKPbogw3SuaDAKCjgCUFdjuf7G3l 0jV2oczIX3Gb3/uUxigJ10/mq7Kb7GWJ+wKQYbeAd51T99o5hIB2HRPjH5p4b8e9ubJX uOjWww6EokByFUtAgH9LXRjq0+hPx8vWrhH/XlCIUeYjsj2VDE5ZV5bkIR+SrZq8DLEU CzqhqlKmIgxZH0qprZ+TdqQLPBYoFYCrlromCl1JUCHPvwcu6pbEEzqfQjoRY9kggGIB 0DnQ== 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 a10-20020a170902ee8a00b001ae488bbbd4si126420pld.344.2023.05.17.19.11.30; Wed, 17 May 2023 19:11:45 -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 S229642AbjERCIK (ORCPT + 99 others); Wed, 17 May 2023 22:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjERCIJ (ORCPT ); Wed, 17 May 2023 22:08:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 559392D7D; Wed, 17 May 2023 19:08:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E770764C4B; Thu, 18 May 2023 02:08:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5346C433EF; Thu, 18 May 2023 02:08:01 +0000 (UTC) Date: Wed, 17 May 2023 22:08:00 -0400 From: Steven Rostedt To: Beau Belgrave Cc: Alexei Starovoitov , Masami Hiramatsu , LKML , linux-trace-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf , David Vernet , Linus Torvalds , Dave Thaler , Christian Brauner , Christoph Hellwig Subject: Re: [PATCH] tracing/user_events: Run BPF program if attached Message-ID: <20230517220800.3d4cbad2@gandalf.local.home> In-Reply-To: <20230518011814.GA294@W11-BEAU-MD.localdomain> References: <20230509130111.62d587f1@rorschach.local.home> <20230509163050.127d5123@rorschach.local.home> <20230515165707.hv65ekwp2djkjj5i@MacBook-Pro-8.local> <20230515192407.GA85@W11-BEAU-MD.localdomain> <20230517003628.aqqlvmzffj7fzzoj@MacBook-Pro-8.local> <20230516212658.2f5cc2c6@gandalf.local.home> <20230517165028.GA71@W11-BEAU-MD.localdomain> <20230518001916.GB254@W11-BEAU-MD.localdomain> <20230518011814.GA294@W11-BEAU-MD.localdomain> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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 On Wed, 17 May 2023 18:18:14 -0700 Beau Belgrave wrote: > We should tell folks to use a group and give access to the group like > Steven said earlier. Could we possibly add an "owner" attribute to the event. That is, the creator of the event is the only one that can write to that event. Or at least by the user that created it (not actually the process). So if the user "rostedt" creates an event, only "rostedt" can write to or delete the event. Basically like how the /tmp directory works. I think this would lock down the issue that Alexei is worried about. Thoughts? -- Steve P.S. I'm about to leave on PTO and will be very late in my replies starting now. (Unless I'm board at the airport, I may then reply). -- Steve