mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
USB: misc: usbled: fix up some sysfs attribute permissions
They should not be writable by any user. Reported-by: Linus Torvalds <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
d489a4b392
commit
48f115470e
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ static ssize_t set_##value(struct device *dev, struct device_attribute *attr, co
|
|||
change_color(led); \
|
||||
return count; \
|
||||
} \
|
||||
static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value);
|
||||
static DEVICE_ATTR(value, S_IRUGO | S_IWUSR, show_##value, set_##value);
|
||||
show_set(blue);
|
||||
show_set(red);
|
||||
show_set(green);
|
||||
|
|
|
|||
Loading…
Reference in a new issue