From: Amir Goldstein <amir73il@gmail.com>
To: Xiaoming Ni <nixiaoming@huawei.com>
Cc: Jan Kara <jack@suse.cz>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
wangle6@huawei.com
Subject: Re: Question: Why is there no notification when a file is opened using filp_open()?
Date: Tue, 8 Sep 2020 13:06:53 +0300 [thread overview]
Message-ID: <CAOQ4uxhejJzjKLZCt=b87KAX0sC3RAZ2FHEZbu4188Ar-bkmOg@mail.gmail.com> (raw)
In-Reply-To: <25817189-49a7-c64f-26ee-78d4a27496b6@huawei.com>
On Tue, Sep 8, 2020 at 11:02 AM Xiaoming Ni <nixiaoming@huawei.com> wrote:
>
> The file opening action on the system may be from user-mode sys_open()
> or kernel-mode filp_open().
> Currently, fsnotify_open() is invoked in do_sys_openat2().
> But filp_open() is not notified. Why? Is this an omission?
>
> Do we need to call fsnotify_open() in filp_open() or do_filp_open() to
> ensure that both user-mode and kernel-mode file opening operations can
> be notified?
>
Do you have a specific use case of kernel filp_open() in mind?
Thanks,
Amir.
next prev parent reply other threads:[~2020-09-08 10:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 8:01 Question: Why is there no notification when a file is opened using filp_open()? Xiaoming Ni
2020-09-08 10:06 ` Amir Goldstein [this message]
2020-09-08 12:53 ` Xiaoming Ni
2020-09-08 13:18 ` Amir Goldstein
2020-09-08 17:18 ` Matthew Wilcox
2020-09-09 3:44 ` Amir Goldstein
2020-09-09 6:59 ` Xiaoming Ni
2020-09-09 7:36 ` Amir Goldstein
2020-09-09 11:11 ` Jan Kara
2020-09-09 16:03 ` Amir Goldstein
2020-09-10 8:14 ` Jan Kara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOQ4uxhejJzjKLZCt=b87KAX0sC3RAZ2FHEZbu4188Ar-bkmOg@mail.gmail.com' \
--to=amir73il@gmail.com \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nixiaoming@huawei.com \
--cc=wangle6@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).