diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-21 09:55:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-21 09:55:45 -0800 |
commit | 2dde263d81dc6ded2df086bf9db05396c7c215ee (patch) | |
tree | 39af457872c697320cb24e49052f161381f97c51 /fs/open.c | |
parent | c01f664e4ca210823b7594b50669bbd9b0a3c3b0 (diff) | |
parent | 21d1b618b6b9da46c5116c640ac4b1cc8d40d63a (diff) | |
download | lwn-2dde263d81dc6ded2df086bf9db05396c7c215ee.tar.gz lwn-2dde263d81dc6ded2df086bf9db05396c7c215ee.zip |
Merge tag 'fsnotify_for_v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fsnotify updates from Jan Kara:
"A couple of smaller random fsnotify fixes"
* tag 'fsnotify_for_v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
fsnotify: Fix ordering of iput() and watched_objects decrement
fsnotify: fix sending inotify event with unexpected filename
fanotify: allow reporting errors on failure to open fd
fsnotify, lsm: Decouple fsnotify from lsm
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/open.c b/fs/open.c index 4b37c5912e6c..e6911101fe71 100644 --- a/fs/open.c +++ b/fs/open.c @@ -929,6 +929,10 @@ static int do_dentry_open(struct file *f, if (error) goto cleanup_all; + error = fsnotify_open_perm(f); + if (error) + goto cleanup_all; + error = break_lease(file_inode(f), f->f_flags); if (error) goto cleanup_all; |