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

Commit 313901e0 authored by Mao Li's avatar Mao Li Committed by Mohan Pallaka
Browse files

input: synaptics_dsx: change permission for sysfs secure_touch_enable



Sysfs secure_touch_enable has permission 666. Remove write access
for "others" to avoid security concerns.

CRs-fixed: 763326
Change-Id: Ifcc34d418fb14af21440d2dd7200d125b02f85dd
Signed-off-by: default avatarMao Li <maol@codeaurora.org>
parent dca34e2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ static struct device_attribute attrs[] = {
			synaptics_rmi4_0dbutton_show,
			synaptics_rmi4_0dbutton_store),
#if defined(CONFIG_SECURE_TOUCH)
	__ATTR(secure_touch_enable, (S_IRUGO | S_IWUGO),
	__ATTR(secure_touch_enable, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_secure_touch_enable_show,
			synaptics_secure_touch_enable_store),
	__ATTR(secure_touch, S_IRUGO ,
+1 −1
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ static struct device_attribute attrs[] = {
			synaptics_rmi4_flipy_show,
			synaptics_rmi4_flipy_store),
#if defined(CONFIG_SECURE_TOUCH)
	__ATTR(secure_touch_enable, (S_IRUGO | S_IWUGO),
	__ATTR(secure_touch_enable, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_secure_touch_enable_show,
			synaptics_secure_touch_enable_store),
	__ATTR(secure_touch, S_IRUGO ,