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:
8040835
)
platform: x86: acer-wmi: world-writable sysfs threeg file
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 4 Feb 2011 12:23:56 +0000
(15:23 +0300)
committer
Matthew Garrett
<mjg@redhat.com>
Mon, 21 Feb 2011 22:06:15 +0000
(17:06 -0500)
Don't allow everybody to write to hardware registers.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/acer-wmi.c
b/drivers/platform/x86/acer-wmi.c
index c5c4b8c32eb89a40291295ed79562318cd110cdd..a7bcad7eb093e8917f87f281995f8cdb9982028a 100644
(file)
--- a/
drivers/platform/x86/acer-wmi.c
+++ b/
drivers/platform/x86/acer-wmi.c
@@
-1280,7
+1280,7
@@
static ssize_t set_bool_threeg(struct device *dev,
return -EINVAL;
return count;
}
-static DEVICE_ATTR(threeg, S_I
WUGO | S_I
RUGO | S_IWUSR, show_bool_threeg,
+static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,
set_bool_threeg);
static ssize_t show_interface(struct device *dev, struct device_attribute *attr,