Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186320
b: refs/heads/master
c: 76595f7
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and Linus Torvalds committed Mar 6, 2010
1 parent 42dda32 commit c3656fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c99cbf49a6e1a1efd25b11f4604c65c455e1612
refs/heads/master: 76595f79d76fbe6267a51b3a866a028d150f06d4
3 changes: 2 additions & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1936,8 +1936,9 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
/*
* Dont allow local users get cute and trick others to coredump
* into their pre-created files:
* Note, this is not relevant for pipes
*/
if (inode->i_uid != current_fsuid())
if (!ispipe && (inode->i_uid != current_fsuid()))
goto close_fail;
if (!cprm.file->f_op)
goto close_fail;
Expand Down

0 comments on commit c3656fe

Please sign in to comment.