From: Eric Paris Date: Wed, 17 Dec 2008 18:53:20 +0000 (-0500) Subject: sys_execve and sys_uselib do not call into fsnotify X-Git-Tag: v2.6.29-rc1~506^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6110e3abbff8b785907d4db50240e63c1be726e3;p=linux-2.6-omap-h63xx.git sys_execve and sys_uselib do not call into fsnotify 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 Signed-off-by: Al Viro --- diff --git a/fs/exec.c b/fs/exec.c index 3ef9cf9b187..9c33f542dc7 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include @@ -132,6 +133,8 @@ asmlinkage long sys_uselib(const char __user * library) if (IS_ERR(file)) goto out; + fsnotify_open(file->f_path.dentry); + error = -ENOEXEC; if(file->f_op) { struct linux_binfmt * fmt; @@ -684,6 +687,8 @@ struct file *open_exec(const char *name) if (IS_ERR(file)) return file; + fsnotify_open(file->f_path.dentry); + err = deny_write_access(file); if (err) { fput(file);