提交 b80b168f 编写于 作者: V Vasiliy Kulikov 提交者: Matthew Garrett

platform: x86: acer-wmi: world-writable sysfs threeg file

Don't allow everybody to write to hardware registers.
Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 80408357
...@@ -1280,7 +1280,7 @@ static ssize_t set_bool_threeg(struct device *dev, ...@@ -1280,7 +1280,7 @@ static ssize_t set_bool_threeg(struct device *dev,
return -EINVAL; return -EINVAL;
return count; 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); set_bool_threeg);
static ssize_t show_interface(struct device *dev, struct device_attribute *attr, static ssize_t show_interface(struct device *dev, struct device_attribute *attr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册