diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-15 11:35:49 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-21 12:44:03 -0700 |
commit | 967e5c6eb86a2ac562a62e142d36cdad451d36b0 (patch) | |
tree | bf7b9a114a7f0c3998809eda6dee175b09a75e18 | |
parent | a154f54e15663e700edafbf953fecb01b8ca7765 (diff) | |
download | linux-rt-967e5c6eb86a2ac562a62e142d36cdad451d36b0.tar.gz |
USB: misc: usbled: fix up some sysfs attribute permissions
commit 48f115470e68d443436b76b22dad63ffbffd6b97 upstream.
They should not be writable by any user.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/misc/usbled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbled.c b/drivers/usb/misc/usbled.c index 06cb71942dc7..9650de93a3d4 100644 --- a/drivers/usb/misc/usbled.c +++ b/drivers/usb/misc/usbled.c @@ -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); |