lkml.org 
[lkml]   [2015]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.0 56/60] coredump: accept any write method
    Date
    4.0-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Al Viro <viro@zeniv.linux.org.uk>

    commit 86cc05840a0da1afcb6b8151b53f3b606457c91b upstream.

    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/coredump.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/fs/coredump.c
    +++ b/fs/coredump.c
    @@ -657,7 +657,7 @@ void do_coredump(const siginfo_t *siginf
    */
    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;



    \
     
     \ /
      Last update: 2015-05-16 02:01    [W:2.267 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site