projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
498a61e
)
coredump: accept any write method
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 3 Apr 2015 19:23:17 +0000
(15:23 -0400)
committer
Sasha Levin
<sasha.levin@oracle.com>
Tue, 9 Jun 2015 17:43:40 +0000
(13:43 -0400)
[ Upstream commit
86cc05840a0da1afcb6b8151b53f3b606457c91b
]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/coredump.c
patch
|
blob
|
history
diff --git
a/fs/coredump.c
b/fs/coredump.c
index b5c86ffd5033420523934c7153080d8cdc605bea..4c5866b948e771ba4bc7cb13cda7100e661934e2 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-657,7
+657,7
@@
void do_coredump(const siginfo_t *siginfo)
*/
if (!uid_eq(inode->i_uid, current_fsuid()))
goto close_fail;
- if (!
cprm.file->f_op->write
)
+ if (!
(cprm.file->f_mode & FMODE_CAN_WRITE)
)
goto close_fail;
if (do_truncate(cprm.file->f_path.dentry, 0, 0, cprm.file))
goto close_fail;