[kernel] r17406 - in dists/lenny/linux-2.6/debian: . patches/bugfix/x86 patches/series
Dann Frazier
dannf at alioth.debian.org
Mon May 16 00:57:24 UTC 2011
Author: dannf
Date: Mon May 16 00:57:22 2011
New Revision: 17406
Log:
[x86] acer-wmi: world-writable sysfs threeg file
Added:
dists/lenny/linux-2.6/debian/patches/bugfix/x86/acer-wmi-world-writable-sysfs-threeg-file.patch
Modified:
dists/lenny/linux-2.6/debian/changelog
dists/lenny/linux-2.6/debian/patches/series/27
Modified: dists/lenny/linux-2.6/debian/changelog
==============================================================================
--- dists/lenny/linux-2.6/debian/changelog Mon May 16 00:57:14 2011 (r17405)
+++ dists/lenny/linux-2.6/debian/changelog Mon May 16 00:57:22 2011 (r17406)
@@ -16,6 +16,7 @@
after switching mm
- dm raid1: fail writes if errors are not handled and log fails
- [x86] asus_acpi: world-writable procfs files
+ - [x86] acer-wmi: world-writable sysfs threeg file
-- Ben Hutchings <ben at decadent.org.uk> Mon, 29 Nov 2010 02:01:24 +0000
Added: dists/lenny/linux-2.6/debian/patches/bugfix/x86/acer-wmi-world-writable-sysfs-threeg-file.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/lenny/linux-2.6/debian/patches/bugfix/x86/acer-wmi-world-writable-sysfs-threeg-file.patch Mon May 16 00:57:22 2011 (r17406)
@@ -0,0 +1,37 @@
+commit 166e7fface1b580cffb17363eab47d59e4d07147
+Author: Vasiliy Kulikov <segoon at openwall.com>
+Date: Fri Feb 4 15:23:56 2011 +0300
+
+ platform: x86: acer-wmi: world-writable sysfs threeg file
+
+ commit b80b168f918bba4b847e884492415546b340e19d upstream.
+
+ Don't allow everybody to write to hardware registers.
+
+ Signed-off-by: Vasiliy Kulikov <segoon at openwall.com>
+ Signed-off-by: Matthew Garrett <mjg at redhat.com>
+ Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+ [wt: also fixed permission on interface]
+
+diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
+index d8b0d32..aca21f7 100644
+--- a/drivers/misc/acer-wmi.c
++++ b/drivers/misc/acer-wmi.c
+@@ -957,7 +957,7 @@ set_bool_##value(struct device *dev, struct device_attribute *attr, \
+ return -EINVAL; \
+ return count; \
+ } \
+-static DEVICE_ATTR(value, S_IWUGO | S_IRUGO | S_IWUSR, \
++static DEVICE_ATTR(value, S_IRUGO | S_IWUSR, \
+ show_bool_##value, set_bool_##value);
+
+ show_set_bool(wireless, ACER_CAP_WIRELESS);
+@@ -982,7 +982,7 @@ static ssize_t show_interface(struct device *dev, struct device_attribute *attr,
+ }
+ }
+
+-static DEVICE_ATTR(interface, S_IWUGO | S_IRUGO | S_IWUSR,
++static DEVICE_ATTR(interface, S_IRUGO | S_IWUSR,
+ show_interface, NULL);
+
+ /*
Modified: dists/lenny/linux-2.6/debian/patches/series/27
==============================================================================
--- dists/lenny/linux-2.6/debian/patches/series/27 Mon May 16 00:57:14 2011 (r17405)
+++ dists/lenny/linux-2.6/debian/patches/series/27 Mon May 16 00:57:22 2011 (r17406)
@@ -7,3 +7,4 @@
+ bugfix/x86/mm-avoid-possible-bogus-tlb-entries-by-clearing-prev-mm_cpumask-after.patch
+ bugfix/all/dm-raid1-fail-writes-if-errors-are-not-handled-and-log-fails.patch
+ bugfix/x86/asus_acpi-world-writeable-procfs-files.patch
++ bugfix/x86/acer-wmi-world-writable-sysfs-threeg-file.patch
More information about the Kernel-svn-changes
mailing list