projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c114cb
)
drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file
author
Axel Lin
<
[email protected]
>
Tue, 18 Dec 2012 00:00:59 +0000
(16:00 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 18 Dec 2012 01:15:16 +0000
(17:15 -0800)
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: Axel Lin <
[email protected]
>
Acked-by: "G.Shark Jeong" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/backlight/lm3639_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/lm3639_bl.c
b/drivers/video/backlight/lm3639_bl.c
index b0e1e8ba4d9f86f7daf0b63d658f0d9026c5496e..7ab2d2a04e41a8aca4dc6e9e14a104fbebbe3cd3 100644
(file)
--- a/
drivers/video/backlight/lm3639_bl.c
+++ b/
drivers/video/backlight/lm3639_bl.c
@@
-214,7
+214,7
@@
out_input:
}
-static DEVICE_ATTR(bled_mode,
0666
, NULL, lm3639_bled_mode_store);
+static DEVICE_ATTR(bled_mode,
S_IWUSR
, NULL, lm3639_bled_mode_store);
/* torch */
static void lm3639_torch_brightness_set(struct led_classdev *cdev,