lkml.org 
[lkml]   [2004]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[patch] inotify: use permission not vfs_permission
    From
    Date
    On Wed, 2004-11-17 at 15:09 -0500, Mike Waychison wrote:

    > use permission()

    I appreciate the constructive comment.

    John, attached patch replaces vfs_permission() with permission().

    Thanks, Mike.

    Robert Love


    Use permission() instead of generic_permission().

    Signed-Off-By: Robert Love <rml@novell.com>

    diff -u linux/drivers/char/inotify.c linux/drivers/char/inotify.c
    --- linux/drivers/char/inotify.c 2004-11-17 12:28:27.921136656 -0500
    +++ linux/drivers/char/inotify.c 2004-11-17 12:28:27.921136656 -0500
    @@ -166,7 +166,7 @@
    inode = nd.dentry->d_inode;

    /* you can only watch an inode if you have read permissions on it */
    - error = generic_permission(inode, MAY_READ, NULL);
    + error = permission(inode, MAY_READ);
    if (error) {
    inode = ERR_PTR(error);
    goto release_and_out;

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:08    [W:0.033 / U:298.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site