diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-03-22 16:34:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-14 16:53:37 -0700 |
commit | 92d191de8c0dd7ec93ed4604636d9ebb1c85d249 (patch) | |
tree | 73ff179ff9e8c0f27e59012fd08ee8b7d9a93012 | |
parent | 23b37e1e83747828aa582d38eb32d28de20158a2 (diff) | |
download | linux-stable-92d191de8c0dd7ec93ed4604636d9ebb1c85d249.tar.gz linux-stable-92d191de8c0dd7ec93ed4604636d9ebb1c85d249.tar.bz2 linux-stable-92d191de8c0dd7ec93ed4604636d9ebb1c85d249.zip |
drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file
commit 49d50fb1c28738ef6bad0c2b87d5355a1653fed5 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/rtc/rtc-ds1511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index 0b6b7730c716..21c2181bdf06 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c @@ -480,7 +480,7 @@ ds1511_nvram_write(struct kobject *kobj, struct bin_attribute *bin_attr, static struct bin_attribute ds1511_nvram_attr = { .attr = { .name = "nvram", - .mode = S_IRUGO | S_IWUGO, + .mode = S_IRUGO | S_IWUSR, }, .size = DS1511_RAM_MAX, .read = ds1511_nvram_read, |