lkml.org 
[lkml]   [2008]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sys_execve and sys_uselib do not call into fsnotify
From
Date
On Wed, 2008-12-17 at 20:04 +0100, Frederik Deweerdt wrote:
> Hello Eric,
>
> On Wed, Dec 17, 2008 at 01:53:20PM -0500, Eric Paris wrote:
> > 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.
>
> Just curious, isn't the fact that the open still may fail a problem?
> For example, if the lib is not executable in sys_uselib or if the file
> was denied write access in open_exec.

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....

-Eric



\
 
 \ /
  Last update: 2008-12-17 20:25    [W:0.064 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site