Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125765
b: refs/heads/master
c: 6110e3a
h: refs/heads/master
i:
  125763: 66c4ce4
v: v3
  • Loading branch information
Eric Paris authored and Al Viro committed Jan 5, 2009
1 parent 27b4f2f commit 0025f15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56ff5efad96182f4d3cb3dc6b07396762c658f16
refs/heads/master: 6110e3abbff8b785907d4db50240e63c1be726e3
5 changes: 5 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <linux/audit.h>
#include <linux/tracehook.h>
#include <linux/kmod.h>
#include <linux/fsnotify.h>

#include <asm/uaccess.h>
#include <asm/mmu_context.h>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0025f15

Please sign in to comment.