Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp930640rdb; Fri, 22 Dec 2023 09:03:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1ndVCPyKCi2NFAcL65SL8PRLF9duIxmLyhQjYtZ8b3T9tA+h49cU3cY9wu6+SuoDBPmWk X-Received: by 2002:a17:903:2304:b0:1d3:9486:c222 with SMTP id d4-20020a170903230400b001d39486c222mr2039792plh.24.1703264615533; Fri, 22 Dec 2023 09:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703264615; cv=none; d=google.com; s=arc-20160816; b=P9JGzxoIY7PH9UmTmcNArYBfZNN5OUkhFoJzMTJsGhWOVMdfane93YaHZ5x3tA5uYU MOAlB/XAwrd2ZPFfFsbFp9ixRv9oRfiXBBv0K79q8u1MOXz08gkUEQ31IkrLgwFTudqB sVlpHt06h/nF51NaT82jS7/Am9T2FmpFcs541DetX3Zm9ijWDK9Y3LCClB1omoLl/gbu VDVRZKmfPor8vaUNEqcIBhRWogJp6JBYT186IfZ+xaWmKvneseSto55tmBbkXuyr2b3a 9Mpt68UDWOopv4i/rHUy6nNkM/OarqNksJU6r1KtpFFtMFbRch129OcVX6WNwk8mY/7M Et9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ltRRpZS+EOcPiETxy95NBLjy+e16UT8/TWTaVCrYa08=; fh=m0DOFhXjZocZ7vmDnBdTbDk0Cd7MSViKnrNjCBlXotA=; b=F0DYprDO4UDxT/EfPKhppSgZs+BNyAW3L7y13D3HpVMhehkDjKiuvL/17IunBMgIou Tt/iBK3GbPV9jH6C/CveW13UzGo8fpYomHrO1luQ7Xaewwx5oD1QLuOXN5QWarYERqmS 8o9eCXj0coqjZyAmLfM2wWjfwOOf6WXFf8z8J/jdDnQ6SUiXS+JPc5dP6itRHG48tAyv H93SBIlVGm6saUot+punnNDQS49vODAEumQC7maNRrpgaMFU1NPDvvslct4XiD/015y8 6H3kbgHqRBNZNcTg3wnoObt1rQNpDbphTgS2yI9RlLizNzfj8Ul/Ti4TeFfVn3SBZo2o XGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=AmtkH4kh; spf=pass (google.com: domain of linux-kernel+bounces-9933-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p10-20020a170902780a00b001d3738e633csi3481904pll.177.2023.12.22.09.03.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9933-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=AmtkH4kh; spf=pass (google.com: domain of linux-kernel+bounces-9933-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B27A3B21E65 for ; Fri, 22 Dec 2023 17:03:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6780025775; Fri, 22 Dec 2023 17:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AmtkH4kh" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 F148425542 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 Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-7ba84e1a441so17437339f.1 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=kFOfsPHlb+1IRW0GFO5X72sV+9rhmugPjJOdeGIJorLMazSmxhbBjOIqhM5e1Q9yJH K0zw7yFxEdWaXLPfYYLv8NXaw3EfazYcTetsYPLvWwnAY2YP3HGuEXAelKX4C/gGhA4n 86prW3hNnpZ92fUYXI6qbKcb3caGkUfPzceRmA+8M92YzbmL+fvYvl67vfzLECBc0iOu a0DWFtSLqCTe8YzGnI3YMroPwi+mrgzO6GASmrlnzVqG43dqyioyg2ocJle+xqxKe2UG srDFiPK5tuEb6YgjZqO7dc8+vmOdq0orjgStIfrW3XgHFgnJKhNBVkyKD2u4s6KcmhUC S6ww== X-Gm-Message-State: AOJu0YxrBoT+aH7StfAMTWgcAv4IJ20TdpGU+9lcw5MsUdIC6J5fFjDz nWrV68ka0kYQPQ8vzlKaqpW5gftW8+JiLg== 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-kernel@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