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:
90c05b9
)
Staging: udlfb: fix up some sysfs attribute permissions
author
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:21:36 +0000
(11:21 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:21:36 +0000
(11:21 -0800)
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/udlfb/udlfb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/udlfb/udlfb.c
b/drivers/staging/udlfb/udlfb.c
index fed25105970a94d06ca185fa81603f79968d67f8..0e0bc0b23d443160118eea54a9818a344448bca2 100644
(file)
--- a/
drivers/staging/udlfb/udlfb.c
+++ b/
drivers/staging/udlfb/udlfb.c
@@
-1441,7
+1441,7
@@
static struct device_attribute fb_device_attrs[] = {
__ATTR_RO(metrics_bytes_identical),
__ATTR_RO(metrics_bytes_sent),
__ATTR_RO(metrics_cpu_kcycles_used),
- __ATTR(metrics_reset, S_I
WUGO
, NULL, metrics_reset_store),
+ __ATTR(metrics_reset, S_I
RUSR
, NULL, metrics_reset_store),
};
/*