Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74300
b: refs/heads/master
c: 9bfb52a
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Nov 28, 2007
1 parent 2197f87 commit 7196cd5
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f95e0d1c2ad668c77aa4b272c076faf3aa0d631c
refs/heads/master: 9bfb52ad716e74785b2402b7ea17f30e0344b8e8
6 changes: 6 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,12 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs)
but keep the previous behaviour for now. */
if (!ispipe && !S_ISREG(inode->i_mode))
goto close_fail;
/*
* Dont allow local users get cute and trick others to coredump
* into their pre-created files:
*/
if (inode->i_uid != current->fsuid)
goto close_fail;
if (!file->f_op)
goto close_fail;
if (!file->f_op->write)
Expand Down

0 comments on commit 7196cd5

Please sign in to comment.