提交 f92201c3 编写于 作者: R Rusty Russell

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: NRusty Russell <rusty@rustcorp.com.au>
Acked-by: NBruno Prémont <bonbons@linux-vserver.org>
Acked-by: NJiri Kosina <jkosina@suse.cz>
上级 2d9a664b
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册