提交 fb08cd9b 编写于 作者: A Axel Lin 提交者: Linus Torvalds

drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file

We don't need the sysfs file to be world writable or group writable.
This file is write-only, change it to S_IWUSR (0200).
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: N"G.Shark Jeong" <gshark.jeong@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2c114cb4
...@@ -214,7 +214,7 @@ static ssize_t lm3639_bled_mode_store(struct device *dev, ...@@ -214,7 +214,7 @@ static ssize_t lm3639_bled_mode_store(struct device *dev,
} }
static DEVICE_ATTR(bled_mode, 0666, NULL, lm3639_bled_mode_store); static DEVICE_ATTR(bled_mode, S_IWUSR, NULL, lm3639_bled_mode_store);
/* torch */ /* torch */
static void lm3639_torch_brightness_set(struct led_classdev *cdev, static void lm3639_torch_brightness_set(struct led_classdev *cdev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册