Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56893
b: refs/heads/master
c: 492c8b3
h: refs/heads/master
i:
  56891: 743bc61
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed May 24, 2007
1 parent c1d8cd2 commit b77355d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5a1b63914815e4223ceb3d079286e18f9ee92b4b
refs/heads/master: 492c8b332e3af279ffadf49b85967d5e43810923
3 changes: 3 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ asmlinkage long sys_uselib(const char __user * library)
if (error)
goto out;

error = -EACCES;
if (nd.mnt->mnt_flags & MNT_NOEXEC)
goto exit;
error = -EINVAL;
if (!S_ISREG(nd.dentry->d_inode->i_mode))
goto exit;
Expand Down

0 comments on commit b77355d

Please sign in to comment.