Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3602866ybt; Sun, 5 Jul 2020 00:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOMCu5Fwa/OeCOwaDbOKMJZWEPTaGKszIUuHyJc05m71UDV3v/LuBrQYR5Kut36XfMrik2 X-Received: by 2002:a17:906:1499:: with SMTP id x25mr38277862ejc.406.1593934498860; Sun, 05 Jul 2020 00:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593934498; cv=none; d=google.com; s=arc-20160816; b=DIYO+CyK7Xk30RQw/nbx6PZc2VOnsXt0gEh8N9W2cC2/7cYnga8wnWSnBd7vo2o0W8 pMwu+OiDEf6dfi9Y4qsShKnuxzuJ050eIHG3tDu5HobDD2QoTcz466IKSR+Y8mPgOBYB t9gnNcjZcnDgEZmIXNOea03QDTGxaTYis+4FxBbgRsJCgZNNTlh7+r8XLFU74iwR9366 o6z1qVzpAOxxmRlYD2oNc1BvQLvZ0RRpSRXftsBKVSuiJtAlnEQeR/Iw0LdiYR3+3eRq NkPQoVgjtm7uggjvCmJJA7IMxgtwue8wBjdKhET6jRq6Md7BGL8j8qgmbsxPXT6sYt6C 3tkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qe6BRHbS2dje4xoJs6FO4l7Z0G7eZeZicZ9dtW8GqEU=; b=FfYkii46ZAuvxsvLbUzCNwRuIrwKHt+Et6pyVxVUb1v4YXP/NS2aOKXUYcjo2r9X+G IK4sGIDrS4TdSuLHdn/WXOvEY8Lopk4BblaTd626kSHE5w6bCFodwr/2QzgjWQz14csZ yzgOZnAfxz04xsjRSaIBViw/pvmHpUWu72EFO24GtlnnOc2npXbvI9TGT9WtNnAqnZ5f Qur1KFQVR85qrwbvtg//S14IBZiDd8KztpweCoHCh2I5ZEY+o08Sr6q16LWM/sDZ32e/ HTv/CJNcYOvA5hjjsfnKgXWg2RL+NtKW/w4RcPXXVOvWr5qUCBBXNbEG0c7zBXJnKCJt 1D9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jeRjaa14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp17si14446913ejc.285.2020.07.05.00.34.35; Sun, 05 Jul 2020 00:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jeRjaa14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726369AbgGEHea (ORCPT + 99 others); Sun, 5 Jul 2020 03:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:48772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgGEHea (ORCPT ); Sun, 5 Jul 2020 03:34:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C32720702; Sun, 5 Jul 2020 07:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593934470; bh=M0Nl0piVJywOWOh5GkXic1ooxXaj3OJL4yQvkIzhHc0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jeRjaa14xmg7VN1dNQTqNABuDjz5ik3ypPX5CDQdd7lbMcZ42I3Ycp9dJuLQ356ST SPZAkO62/Dsek+qBJK8A0e8Q9d6LJKUyfiOf7dlPWFfUTKqe7J6ahukX/P0Qtqo/hC SzJg6nSCHZ5Rp5Ld0cao8dQSiNJ8ZXaKlQjmSuDY= Date: Sun, 5 Jul 2020 09:34:26 +0200 From: Greg Kroah-Hartman To: Heinrich Schuchardt Cc: viro@zeniv.linux.org.uk, mtk.manpages@gmail.com, shuah@kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 3/3] selftests: add readfile(2) selftests Message-ID: <20200705073426.GA37944@kroah.com> References: <20200704140250.423345-1-gregkh@linuxfoundation.org> <20200704140250.423345-4-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 05, 2020 at 03:41:48AM +0200, Heinrich Schuchardt wrote: > On 7/4/20 4:02 PM, Greg Kroah-Hartman wrote: > > Test the functionality of readfile(2) in various ways. > > Hello Greg, > > I expect readfile() to generate fanotify events FAN_OPEN_PERM, FAN_OPEN, > FAN_ACCESS_PERM, FAN_ACCESS, FAN_CLOSE_NOWRITE in this sequence. Yes, it should, I don't think I do anything unique here when it comes to vfs accesses that would go around those events. > Looking at patch 1/3 you took care of notifications. Would this deserve > testing here? Possibly, do we have other in-tree tests of syscalls that validate those events properly being created? thanks, greg k-h