|
@@ -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
|
|
* Dont allow local users get cute and trick others to coredump
|
|
* into their pre-created files:
|
|
* 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;
|
|
goto close_fail;
|
|
if (!cprm.file->f_op)
|
|
if (!cprm.file->f_op)
|
|
goto close_fail;
|
|
goto close_fail;
|