linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question: Why is there no notification when a file is opened using filp_open()?
@ 2020-09-08  8:01 Xiaoming Ni
  2020-09-08 10:06 ` Amir Goldstein
  0 siblings, 1 reply; 11+ messages in thread
From: Xiaoming Ni @ 2020-09-08  8:01 UTC (permalink / raw)
  To: jack, amir73il; +Cc: linux-fsdevel, Linux Kernel Mailing List, wangle6

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?

Thanks
Xiaoming Ni

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-09-10  8:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).