mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
fsnotify: fanotify -- Take into accout global flag assigned to fanotify object
Just missed it in first place. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
27c8a3cf65
commit
12b579bac0
@@ -387,6 +387,7 @@ static int open_fanotify_fd(struct file_desc *d)
|
|||||||
|
|
||||||
info = container_of(d, struct fsnotify_file_info, d);
|
info = container_of(d, struct fsnotify_file_info, d);
|
||||||
|
|
||||||
|
flags = info->ffe->faflags;
|
||||||
if (info->ffe->flags & O_CLOEXEC)
|
if (info->ffe->flags & O_CLOEXEC)
|
||||||
flags |= FAN_CLOEXEC;
|
flags |= FAN_CLOEXEC;
|
||||||
if (info->ffe->flags & O_NONBLOCK)
|
if (info->ffe->flags & O_NONBLOCK)
|
||||||
|
Reference in New Issue
Block a user