mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drivers/hid/hid-picolcd_fb: avoid world-writable sysfs files.
In line with practice for module parameters, we're adding a build-time check that sysfs files aren't world-writable. Signed-off-by: Rusty Russell <[email protected]> Acked-by: Bruno Prémont <[email protected]> Acked-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
2d9a664b81
commit
f92201c348
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@ static ssize_t picolcd_fb_update_rate_store(struct device *dev,
|
|||
return count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(fb_update_rate, 0666, picolcd_fb_update_rate_show,
|
||||
static DEVICE_ATTR(fb_update_rate, 0664, picolcd_fb_update_rate_show,
|
||||
picolcd_fb_update_rate_store);
|
||||
|
||||
/* initialize Framebuffer device */
|
||||
|
|
|
|||
Loading…
Reference in a new issue