From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03F8F2554E for ; Fri, 22 Dec 2023 17:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AmtkH4kh" Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7b74bc536dbso17563939f.0 for ; Fri, 22 Dec 2023 09:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1703264601; x=1703869401; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ltRRpZS+EOcPiETxy95NBLjy+e16UT8/TWTaVCrYa08=; b=AmtkH4khFMtKHhxoCNqyNq5lGWxBtPBahG/pLvnAtxiABv1o1KeY/a7R80o+SkUSpo sTaPO/qskOk7eUmOeAn5q1RuwkZcKkcGK/JEMlHDo2dObpana5sOIjDxS+l3KM4uwsFl ieBM5JeB9RcO9E4iKdNgD6KnbxvTB6asLYxPI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703264601; x=1703869401; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ltRRpZS+EOcPiETxy95NBLjy+e16UT8/TWTaVCrYa08=; b=Ig4JCTjE7BD0aA4gfjFx+rZKFC5OzK6TpXa4Ee/aHOO2Un7qko008gq7pxDNQI6+2J +w1vx7it6TA5+zFa1jxHbm9o34vqBFWZ8KHP2Kee0zh3WgNdNqZu8zEeqgrwl+mj+Ya0 1IgqV5hpaNYP1v4NGSfr7quhSlwR6K4p7W5VFzN43adKMl5bkETUsz5tO4/17TIxoM77 caNYRB6GWxsYUY24GiczaZV4+GRxLfhNpxnc78mllPAqXexmJa8vBH1dBbPCOKc+fIj2 hoMvOdovqrh4qzuemJqxgW99WuC2QXZ/zmr6AoH1JakEKWSFjFLrw7Q0HEtX0w4a/eSc acRA== X-Gm-Message-State: AOJu0Yzs4r2fQj5w+eBmUd4DT1a9Mi4VsKrJALDU4hxOTx350Wu8h3GJ If4UnIPL+b0BRyCOzTQ8oWlxEmVHbcEGkw== X-Google-Smtp-Source: AGHT+IG8x9fpWMWrm5btoGGjgbfKlOW9ON3tdHN6XzxnXT29KlFDVnIHs5y0IVbj/bXEE2sM5V6gQw== X-Received: by 2002:a05:6e02:1cab:b0:35f:d862:e451 with SMTP id x11-20020a056e021cab00b0035fd862e451mr3120716ill.2.1703264601030; Fri, 22 Dec 2023 09:03:21 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id by3-20020a056e02260300b0035d53e82fc1sm1226169ilb.19.2023.12.22.09.03.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Dec 2023 09:03:19 -0800 (PST) Message-ID: <80b5ef43-7b3d-4af0-8efd-0bb080e99ccf@linuxfoundation.org> Date: Fri, 22 Dec 2023 10:03:19 -0700 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] tracing/selftests: Add ownership modification tests for eventfs Content-Language: en-US To: Steven Rostedt , LKML , Linux Trace Kernel Cc: Masami Hiramatsu , Mathieu Desnoyers , Linus Torvalds , Shuah Khan , Linux selftests , Shuah Khan References: <20231222113459.4d645bfc@gandalf.local.home> From: Shuah Khan In-Reply-To: <20231222113459.4d645bfc@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/22/23 09:34, 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. > > Acked-by: Masami Hiramatsu (Google) > Tested-by: Masami Hiramatsu (Google) > Signed-off-by: Steven Rostedt (Google) > --- > Changes since v3: https://lore.kernel.org/linux-trace-kernel/20231221211229.13398ef3@gandalf.local.home > > - Added missing SPDX and removed exec permission from file (Shuah Khan) > Thank you. Applied to linux-kselftest next branch for Linux 6.8-rc1 thanks, -- Shuah