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 1AC4DC77B7D for ; Thu, 18 May 2023 02:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbjERCIJ (ORCPT ); Wed, 17 May 2023 22:08:09 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-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