From 0025f15350aaafd06d04f2cfd81dc09f15efa5b5 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 17 Dec 2008 13:53:20 -0500 Subject: [PATCH] --- yaml --- r: 125765 b: refs/heads/master c: 6110e3abbff8b785907d4db50240e63c1be726e3 h: refs/heads/master i: 125763: 66c4ce4f51d8e835885f987ced5412bed0a5ebf6 v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a0c4f96929f3..49417b6c063a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 56ff5efad96182f4d3cb3dc6b07396762c658f16 +refs/heads/master: 6110e3abbff8b785907d4db50240e63c1be726e3 diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index 3ef9cf9b1871..9c33f542dc77 100644 --- a/trunk/fs/exec.c +++ b/trunk/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);