mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file
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]>
This commit is contained in:
parent
cf044f0ed5
commit
49d50fb1c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue