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

Commit b5ea150d authored by Amy Maloche's avatar Amy Maloche Committed by Sudhakar Manapati
Browse files

input: synaptics: Change sysfs permissions



Some permissions are set as write for all users, when they
should be only for owner.

This patch is propagated from msm-3.4 kernel.
(commit: 8b99ec90488832189789b0a968650f97a0004d95
input: synaptics: Change sysfs permissions)

Change-Id: I24b8393d66078d19192ab3252fe59d3104fdb084
Signed-off-by: default avatarAmy Maloche <amaloche@codeaurora.org>
parent 97b2a01e
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -1719,7 +1719,7 @@ static void synaptics_rmi4_fwu_attn(struct synaptics_rmi4_data *rmi4_data,
static struct bin_attribute dev_attr_data = {
	.attr = {
		.name = "data",
		.mode = (S_IRUGO | S_IWUGO),
		.mode = (S_IRUGO | S_IWUSR | S_IWGRP),
	},
	.size = 0,
	.read = fwu_sysfs_show_image,
@@ -1727,25 +1727,25 @@ static struct bin_attribute dev_attr_data = {
};

static struct device_attribute attrs[] = {
	__ATTR(fw_name, S_IWUGO | S_IRUGO,
	__ATTR(fw_name, S_IRUGO | S_IWUSR | S_IWGRP,
			fwu_sysfs_fw_name_show,
			fwu_sysfs_fw_name_store),
	__ATTR(force_update_fw, S_IWUGO,
	__ATTR(force_update_fw, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_force_reflash_store),
	__ATTR(update_fw, S_IWUGO,
	__ATTR(update_fw, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_do_reflash_store),
	__ATTR(writeconfig, S_IWUGO,
	__ATTR(writeconfig, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_write_config_store),
	__ATTR(readconfig, S_IWUGO,
	__ATTR(readconfig, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_read_config_store),
	__ATTR(configarea, S_IWUGO,
	__ATTR(configarea, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_config_area_store),
	__ATTR(imagesize, S_IWUGO,
	__ATTR(imagesize, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			fwu_sysfs_image_size_store),
	__ATTR(blocksize, S_IRUGO,
+4 −4
Original line number Diff line number Diff line
@@ -235,11 +235,11 @@ struct synaptics_rmi4_exp_fn {

static struct device_attribute attrs[] = {
#ifdef CONFIG_PM
	__ATTR(full_pm_cycle, (S_IRUGO | S_IWUGO),
	__ATTR(full_pm_cycle, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_rmi4_full_pm_cycle_show,
			synaptics_rmi4_full_pm_cycle_store),
#endif
	__ATTR(reset, (S_IWUSR | S_IWGRP),
	__ATTR(reset, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			synaptics_rmi4_f01_reset_store),
	__ATTR(productinfo, S_IRUGO,
@@ -254,10 +254,10 @@ static struct device_attribute attrs[] = {
	__ATTR(0dbutton, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_rmi4_0dbutton_show,
			synaptics_rmi4_0dbutton_store),
	__ATTR(flipx, (S_IRUGO | S_IWUGO),
	__ATTR(flipx, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_rmi4_flipx_show,
			synaptics_rmi4_flipx_store),
	__ATTR(flipy, (S_IRUGO | S_IWUGO),
	__ATTR(flipy, (S_IRUGO | S_IWUSR | S_IWGRP),
			synaptics_rmi4_flipy_show,
			synaptics_rmi4_flipy_store),
};
+4 −4
Original line number Diff line number Diff line
@@ -73,16 +73,16 @@ struct rmidev_data {
};

static struct device_attribute attrs[] = {
	__ATTR(open, (S_IWUSR | S_IWGRP),
	__ATTR(open, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			rmidev_sysfs_open_store),
	__ATTR(release, (S_IWUSR | S_IWGRP),
	__ATTR(release, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			rmidev_sysfs_release_store),
	__ATTR(address, (S_IWUSR | S_IWGRP),
	__ATTR(address, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			rmidev_sysfs_address_store),
	__ATTR(length, (S_IWUSR | S_IWGRP),
	__ATTR(length, S_IRUGO | S_IWUSR | S_IWGRP,
			synaptics_rmi4_show_error,
			rmidev_sysfs_length_store),
	__ATTR(data, (S_IRUGO | S_IWUSR | S_IWGRP),