diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-02-04 02:23:53 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-24 14:54:41 -0800 |
commit | bd518567d945f7964742bf128def2dd01d89c303 (patch) | |
tree | beb77e5a70cd3ccc98268a589899000fcde7f850 | |
parent | 2a43030626d1cba4cd0e7ead34d71be30ecee1bd (diff) | |
download | lwn-bd518567d945f7964742bf128def2dd01d89c303.tar.gz lwn-bd518567d945f7964742bf128def2dd01d89c303.zip |
net: can: janz-ican3: world-writable sysfs termination file
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>
-rw-r--r-- | drivers/net/can/janz-ican3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c index 6e533dcc36c0..e733f2c56a9f 100644 --- 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(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[] = { |