diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-03 21:23:17 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-12 04:29:39 +0200 |
commit | 86cc05840a0da1afcb6b8151b53f3b606457c91b (patch) | |
tree | 3fb22642b2cd4f42db776277807e09e478db95c6 | |
parent | switch /dev/loop to vfs_iter_write() (diff) | |
download | linux-86cc05840a0da1afcb6b8151b53f3b606457c91b.tar.xz linux-86cc05840a0da1afcb6b8151b53f3b606457c91b.zip |
coredump: accept any write method
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coredump.c b/fs/coredump.c index f319926ddf8c..bbbe139ab280 100644 --- 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; |