]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
platform: x86: acer-wmi: world-writable sysfs threeg file
authorVasiliy Kulikov <segoon@openwall.com>
Fri, 4 Feb 2011 12:23:56 +0000 (15:23 +0300)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:46 +0000 (12:46 -0400)
commit b80b168f918bba4b847e884492415546b340e19d upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/platform/x86/acer-wmi.c

index 9fa264386f889d7e525ecb2e85732121e3b9841f..7b32e9c5f5d4e3b27994bc9399bcfedec81b3760 100644 (file)
@@ -1066,7 +1066,7 @@ static ssize_t set_bool_threeg(struct device *dev,
                        return -EINVAL;
        return count;
 }
-static DEVICE_ATTR(threeg, S_IWUGO | S_IRUGO | 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,