1
From: Vasiliy Kulikov <segoon@openwall.com>
2
Subject: [PATCH 17/20] rtc: rtc-ds1511: world-writable sysfs nvram file
3
Date: Fri, 4 Feb 2011 15:24:06 +0300
5
Don't allow everybogy to write to NVRAM.
7
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
11
drivers/rtc/rtc-ds1511.c | 2 +-
12
1 files changed, 1 insertions(+), 1 deletions(-)
14
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
15
index 37268e9..afeb546 100644
16
--- a/drivers/rtc/rtc-ds1511.c
17
+++ b/drivers/rtc/rtc-ds1511.c
18
@@ -485,7 +485,7 @@ ds1511_nvram_write(struct file *filp, struct kobject *kobj,
19
static struct bin_attribute ds1511_nvram_attr = {
22
- .mode = S_IRUGO | S_IWUGO,
23
+ .mode = S_IRUGO | S_IWUSR,
25
.size = DS1511_RAM_MAX,
26
.read = ds1511_nvram_read,