lkml.org 
[lkml]   [2007]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 6/6][RFC] Drop CAP_SYS_RAWIO requirement on FIBMAP
    Remove the need for having CAP_SYS_RAWIO when doing a FIBMAP call on an open file descriptor.

    It would be nice to allow users to have permission to see where their data is landing on disk, and there really isn't a good reason to keep them from getting at this information.

    Signed-off-by: Mike Waychison <mikew@google.com>
    fs/ioctl.c | 3 ---
    1 file changed, 3 deletions(-)

    Index: linux-2.6.23/fs/ioctl.c
    ===================================================================
    --- linux-2.6.23.orig/fs/ioctl.c 2007-10-26 15:30:05.000000000 -0700
    +++ linux-2.6.23/fs/ioctl.c 2007-10-26 15:31:43.000000000 -0700
    @@ -46,9 +46,6 @@ static int do_fibmap(struct address_spac
    struct inode *inode = mapping->host;
    sector_t (*bmap)(struct address_space *, sector_t);

    - if (!capable(CAP_SYS_RAWIO))
    - return -EPERM;
    -
    if (mapping->a_ops->bmap64) {
    /* Filesystem has bmap path audited for 64bit. */
    bmap = mapping->a_ops->bmap64;
    --
    -
    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: 2007-10-27 01:45    [W:0.025 / U:61.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site