[LTP] [PATCH 1/2] fsnotify: Do not generate events for O_PATH file descriptors
Jan Kara
jack@suse.cz
Wed Jun 19 17:24:11 CEST 2024
On Tue 18-06-24 16:28:01, Christian Brauner wrote:
> On Mon, 17 Jun 2024 18:23:00 +0200, Jan Kara wrote:
> > Currently we will not generate FS_OPEN events for O_PATH file
> > descriptors but we will generate FS_CLOSE events for them. This is
> > asymmetry is confusing. Arguably no fsnotify events should be generated
> > for O_PATH file descriptors as they cannot be used to access or modify
> > file content, they are just convenient handles to file objects like
> > paths. So fix the asymmetry by stopping to generate FS_CLOSE for O_PATH
> > file descriptors.
> >
> > [...]
>
> I added a Cc stable to the first patch because this seems like a bugfix
> per the mail discussion.
Yes, makes sense. Thanks!
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
More information about the ltp
mailing list