From: Vasiliy Kulikov Date: Fri, 4 Feb 2011 02:23:53 +0000 (+0000) Subject: net: can: janz-ican3: world-writable sysfs termination file X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1e6d93e45b231b3ae87c01902ede2315aacfe976;p=openwrt%2Fstaging%2Fblogic.git net: can: janz-ican3: world-writable sysfs termination file Don't allow everybody to set terminator via sysfs. Signed-off-by: Vasiliy Kulikov Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c index b9a6d7a5a739..366f5cc050ae 100644 --- a/drivers/net/can/janz-ican3.c +++ b/drivers/net/can/janz-ican3.c @@ -1618,7 +1618,7 @@ static ssize_t ican3_sysfs_set_term(struct device *dev, 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[] = {