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] [188/223] Staging: samsung-laptop: 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 90c05b97fdec8d2196e420d98f774bab731af7aa upstream.

    They should not be writable by any user

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

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

    Index: linux/drivers/staging/samsung-laptop/samsung-laptop.c
    ===================================================================
    --- linux.orig/drivers/staging/samsung-laptop/samsung-laptop.c
    +++ linux/drivers/staging/samsung-laptop/samsung-laptop.c
    @@ -356,7 +356,7 @@ static ssize_t set_silent_state(struct d
    }
    return count;
    }
    -static DEVICE_ATTR(silent, S_IWUGO | S_IRUGO,
    +static DEVICE_ATTR(silent, S_IRUSR | S_IRUGO,
    get_silent_state, set_silent_state);



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