]> Git Repo - linux.git/commitdiff
drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file
authorVasiliy Kulikov <[email protected]>
Tue, 22 Mar 2011 23:34:53 +0000 (16:34 -0700)
committerLinus Torvalds <[email protected]>
Wed, 23 Mar 2011 00:44:16 +0000 (17:44 -0700)
Don't allow everybogy to write to NVRAM.

Signed-off-by: Vasiliy Kulikov <[email protected]>
Cc: Andy Sharp <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-ds1511.c

index 3fffd708711f52fd646692b068fd3d8e8aef0655..fbabc773dded52eb6ee17e3f6c92b589bef0d189 100644 (file)
@@ -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_IWUGO,
+               .mode = S_IRUGO | S_IWUSR,
        },
        .size = DS1511_RAM_MAX,
        .read = ds1511_nvram_read,
This page took 0.052089 seconds and 4 git commands to generate.