lkml.org 
[lkml]   [2010]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [190/223] Staging: frontier: fix up some sysfs attribute permissions
    Date
    2.6.35-longterm review patch.  If anyone has any objections, please let me know.

    ------------------
    From: Greg Kroah-Hartman <gregkh@suse.de>

    commit 3bad28ec006ad6ab2bca4e5103860b75391e3c9d and
    2a767fda5d0d8dcff465724dfad6ee131489b3f2 upstream merged together.

    They should not be writable by any user

    Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: David Taht <d@teklibre.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    drivers/staging/frontier/tranzport.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux/drivers/staging/frontier/tranzport.c
    ===================================================================
    --- linux.orig/drivers/staging/frontier/tranzport.c
    +++ linux/drivers/staging/frontier/tranzport.c
    @@ -204,7 +204,7 @@ static void usb_tranzport_abort_transfer
    t->value = temp; \
    return count; \
    } \
    - static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value);
    + static DEVICE_ATTR(value, S_IWUSR | S_IRUGO, show_##value, set_##value);

    show_int(enable);
    show_int(offline);

    \
     
     \ /
      Last update: 2010-12-13 01:13    [W:0.020 / U:61.224 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site