projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf044f0
)
drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file
author
Vasiliy Kulikov
<segoon@openwall.com>
Tue, 22 Mar 2011 23:34:53 +0000
(16:34 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:16 +0000
(17:44 -0700)
Don't allow everybogy to write to NVRAM.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Cc: Andy Sharp <andy.sharp@onstor.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1511.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-ds1511.c
b/drivers/rtc/rtc-ds1511.c
index 3fffd708711f52fd646692b068fd3d8e8aef0655..fbabc773dded52eb6ee17e3f6c92b589bef0d189 100644
(file)
--- a/
drivers/rtc/rtc-ds1511.c
+++ b/
drivers/rtc/rtc-ds1511.c
@@
-468,7
+468,7
@@
ds1511_nvram_write(struct file *filp, struct kobject *kobj,
static struct bin_attribute ds1511_nvram_attr = {
.attr = {
.name = "nvram",
- .mode = S_IRUGO | S_IWU
GO
,
+ .mode = S_IRUGO | S_IWU
SR
,
},
.size = DS1511_RAM_MAX,
.read = ds1511_nvram_read,