Re: [PATCH] sys_execve and sys_uselib do not call into fsnotify

From: KOSAKI Motohiro
Date: Wed Dec 17 2008 - 21:32:30 EST


> sys_execve and sys_uselib do not call into fsnotify so inotify does not get
> open events for these types of syscalls. This patch simply makes the
> requisite fsnotify calls.
>
> Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>

I hope append your latter explain into the patch description.

> I could be convinced to change it but like what I have. At this point
> the file is open. If it fails after this we are going to call fput()
> which calls __fput() which calls fsnotify_close(). Seemed odd to leave
> a close without an open (although that's what we have today.)
>
> This doesn't mean the syscall was successful, but the file was opened,
> and it will be closed....

I think open/close pairing is important thing to this patch.


Otherthings, looks good to me. very thanks.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/