]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:41 +0000 (14:54 -0800)
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/platform/x86/acer-wmi.c

index 0568d4f006d331b4fd48da5e01b55226f0b93c8a..196a59ee3eb27530afb9b08635b35febd32be2a1 100644 (file)
@@ -1065,7 +1065,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,