Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f11547 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: misc: usbled: fix up some sysfs attribute permissions



They should not be writable by any user.

Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d489a4b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);