projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fef52b0
)
net: can: janz-ican3: world-writable sysfs termination file
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 4 Feb 2011 02:23:53 +0000
(
02:23
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 4 Feb 2011 21:06:27 +0000
(13:06 -0800)
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>
drivers/net/can/janz-ican3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/janz-ican3.c
b/drivers/net/can/janz-ican3.c
index b9a6d7a5a739453986ad73db51e8fa8155fa271f..366f5cc050ae0c85a35dca366bda26f6f8b841ab 100644
(file)
--- 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_IWU
GO
| S_IRUGO, ican3_sysfs_show_term,
+static DEVICE_ATTR(termination, S_IWU
SR
| S_IRUGO, ican3_sysfs_show_term,
ican3_sysfs_set_term);
static struct attribute *ican3_sysfs_attrs[] = {