lkml.org 
[lkml]   [2011]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[66/70] net: can: janz-ican3: world-writable sysfs termination file
    2.6.37-stable review patch.  If anyone has any objections, please let us know.

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

    From: Vasiliy Kulikov <segoon@openwall.com>

    commit 1e6d93e45b231b3ae87c01902ede2315aacfe976 upstream.

    Don't allow everybody to set terminator via sysfs.

    Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/net/can/janz-ican3.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/can/janz-ican3.c
    +++ b/drivers/net/can/janz-ican3.c
    @@ -1627,7 +1627,7 @@ static ssize_t ican3_sysfs_set_term(stru
    return count;
    }

    -static DEVICE_ATTR(termination, S_IWUGO | S_IRUGO, ican3_sysfs_show_term,
    +static DEVICE_ATTR(termination, S_IWUSR | S_IRUGO, ican3_sysfs_show_term,
    ican3_sysfs_set_term);

    static struct attribute *ican3_sysfs_attrs[] = {



    \
     
     \ /
      Last update: 2011-02-22 23:27    [W:4.391 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site