projects
/
GitHub
/
LineageOS
/
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:
fea3af6
)
net: can: at91_can: world-writable sysfs files
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 4 Feb 2011 02:23:50 +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 write to mb0_id file.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/at91_can.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/at91_can.c
b/drivers/net/can/at91_can.c
index 2532b96315389bb4878b23060ba0a229f92692fb..57d2ffbbb433d9d665e1e77ccda13006eb993c70 100644
(file)
--- a/
drivers/net/can/at91_can.c
+++ b/
drivers/net/can/at91_can.c
@@
-1109,7
+1109,7
@@
static ssize_t at91_sysfs_set_mb0_id(struct device *dev,
return ret;
}
-static DEVICE_ATTR(mb0_id, S_IWU
GO
| S_IRUGO,
+static DEVICE_ATTR(mb0_id, S_IWU
SR
| S_IRUGO,
at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id);
static struct attribute *at91_sysfs_attrs[] = {