Re: [PATCH 1/1] fanotify: check file flags passed in fanotify_init

2014-05-03 Thread Michael Kerrisk (man-pages)
Hi Heinrich, On 05/01/2014 05:35 PM, Heinrich Schuchardt wrote: > Without this patch fanotify_init does not validate the value passed in > event_f_flags. > > When a fanotify event is read from the fanotify file descriptor a new file > descriptor is created where file.f_flags = event_f_flags. > >

[PATCH 1/1] fanotify: check file flags passed in fanotify_init

2014-05-01 Thread Heinrich Schuchardt
Without this patch fanotify_init does not validate the value passed in event_f_flags. When a fanotify event is read from the fanotify file descriptor a new file descriptor is created where file.f_flags = event_f_flags. Internal and external open flags are stored together in field f_flags of struc