projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
590b0b9
)
Staging: frontier: fix up some sysfs attribute permissions
author
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:18:33 +0000
(11:18 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:18:33 +0000
(11:18 -0800)
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Taht <d@teklibre.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/frontier/tranzport.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/frontier/tranzport.c
b/drivers/staging/frontier/tranzport.c
index a145a15cfdb39d865a62200a83298192f2670098..1611a27e9b777c020bec2fe1980ac9f8014758a5 100644
(file)
--- a/
drivers/staging/frontier/tranzport.c
+++ b/
drivers/staging/frontier/tranzport.c
@@
-204,7
+204,7
@@
static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
t->value = temp; \
return count; \
} \
- static DEVICE_ATTR(value, S_I
WUGO
| S_IRUGO, show_##value, set_##value);
+ static DEVICE_ATTR(value, S_I
RUSR
| S_IRUGO, show_##value, set_##value);
show_int(enable);
show_int(offline);