Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp538036rdb; Thu, 21 Dec 2023 18:15:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI8+utTp9XkBHHWpfydABlFGyVXW4DZL19YIETyebj2DvbHRcQtlsq+m8jCLmxFZWr1rbh X-Received: by 2002:a05:6a20:5482:b0:18f:ea5b:683e with SMTP id i2-20020a056a20548200b0018fea5b683emr780514pzk.85.1703211311341; Thu, 21 Dec 2023 18:15:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703211311; cv=none; d=google.com; s=arc-20160816; b=KZsih1QWxwSnbx/9lRHX06LvovwbCiAkkYI2wuh8cD5U54aOtIsosoBXtCTQ3kSbBY 60z2gBf9xLxiBo5N0bMNYyZN5CtvCaeK/kUQ8xKbGXng8Lys8rEvnJhGlyUZHKVfR4jj qK5DUYiXI61hjLHmXOVyCBcPe0twd7UkSIipnmDsb+lEOXe9EqaSllgPg+0hDM3uBXv5 6JwiDcHfPl717bzk06cZpzDYtXEbyFjdphHbZxpSIci0zm/EIJSju+FxcJExeX1FquiS WJ/Ci3wFdjgqERIZ8J3k32yLP6W8/QZ/7LbJDcHwWcy5MenYlmfka4tJqylp6pYJdyPI wbCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=ABQKyAnFx1z4leRyEU+lPB4idt8DbfEd+8tM7S+INhA=; fh=R8Xjgm68J/JeYn2gcup1j/CO192i6oXBqYji9QfC+fk=; b=hFdYkLEGS89gE3ClCPdjT9hY8X0Wp9VKtmkY59/uegRzTPaHkdGZQbMulN9JbCnKD5 LS/MM+jkHSiPPcayY4tQ/Ntl5+kjxayMSetaRl1vddGXqolXYp+7xgsZrsZe9omRYp9z 4kXv3nTXE2x4Mu+JNhn+227nWMnrav0Jji5/hQXJhNFApvNoHc1vdcvIG7ftIAT/tQUH b5CrKyaox2VXEo9jZcwEzWVTQKfFNxJuKcDCVAyrLbmXdkXdKeH2hX2G07DNjrB7vzii WVYRoY9IxF5/xNKyXfszHmM3/rHrMVLrSqTKi+JjitGPEsK4aXgdZK5E2hNaMUZGsZjY BeCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9261-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 20-20020a630f54000000b005cdc9aff69asi2503455pgp.293.2023.12.21.18.15.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 18:15:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9261-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09AC3287806 for ; Fri, 22 Dec 2023 02:15:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54865EDF; Fri, 22 Dec 2023 02:15:02 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D41894680; Fri, 22 Dec 2023 02:15:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D6F2C433C7; Fri, 22 Dec 2023 02:15:00 +0000 (UTC) Date: Thu, 21 Dec 2023 21:16:04 -0500 From: Steven Rostedt To: Shuah Khan Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Linus Torvalds , Linux selftests Subject: Re: [PATCH v3] tracing/selftests: Add ownership modification tests for eventfs Message-ID: <20231221211604.5062f4e8@gandalf.local.home> In-Reply-To: <20231221211229.13398ef3@gandalf.local.home> References: <20231221211229.13398ef3@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Shuah, This patch has no dependencies. You can take it through your tree for the next merge window if you want. If not, I can take it. Thanks, -- Steve On Thu, 21 Dec 2023 21:12:29 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > As there were bugs found with the ownership of eventfs dynamic file > creation. Add a test to test it. > > It will remount tracefs with a different gid and check the ownership of > the eventfs directory, as well as the system and event directories. It > will also check the event file directories. > > It then does a chgrp on each of these as well to see if they all get > updated as expected. > > Then it remounts the tracefs file system back to the original group and > makes sure that all the updated files and directories were reset back to > the original ownership. > > It does the same for instances that change the ownership of he instance > directory. > > Note, because the uid is not reset by a remount, it is tested for every > file by switching it to a new owner and then back again. > > Signed-off-by: Steven Rostedt (Google) > --- >