diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c index 5ec0f5677366..50da182a966d 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1826,8 +1826,9 @@ int 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 (!file->f_op) goto close_fail; |