Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b80b168f authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by Matthew Garrett
Browse files

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



Don't allow everybody to write to hardware registers.

Signed-off-by: default avatarVasiliy Kulikov <segoon@openwall.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 80408357
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1280,7 +1280,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,