OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c990600
)
USB: misc: trancevibrator: fix up a sysfs attribute permission
author
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 15 Nov 2010 19:34:26 +0000
(11:34 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 15 Nov 2010 22:04:15 +0000
(14:04 -0800)
It should not be writable by any user.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sam Hocevar <sam@zoy.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/trancevibrator.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/trancevibrator.c
b/drivers/usb/misc/trancevibrator.c
index
d77aba4
..
f63776a
100644
(file)
--- a/
drivers/usb/misc/trancevibrator.c
+++ b/
drivers/usb/misc/trancevibrator.c
@@
-86,7
+86,7
@@
static ssize_t set_speed(struct device *dev, struct device_attribute *attr,
return count;
}
-static DEVICE_ATTR(speed, S_I
WUGO | S_IRUGO
, show_speed, set_speed);
+static DEVICE_ATTR(speed, S_I
RUGO | S_IWUSR
, show_speed, set_speed);
static int tv_probe(struct usb_interface *interface,
const struct usb_device_id *id)