From ab0a38df23c327f5dff71c965969a8fcfcf44f2c Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 2 Feb 2012 15:35:03 -0800 Subject: input: touchscreen: atmel_mxt_ts: Change mem_access permissions Take off the world-write bit from the default permissions for the mem_access debug node. The init scripts will make it accessible on engineering builds. Bug 906796 Signed-off-by: Dan Willemsen Reviewed-on: http://git-master/r/79095 (cherry picked from commit a6ba61cc290bebb5dd16e4ad02cd1e8b3b9802b2) Change-Id: I3e118dd502aa8912ad5fcb8452105c7f5f1c833a Signed-off-by: Pritesh Raithatha Reviewed-on: http://git-master/r/82725 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar Tested-by: Varun Wadekar --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ca8605b70a30..c7c705547e21 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1677,7 +1677,7 @@ static int __devinit mxt_probe(struct i2c_client *client, sysfs_bin_attr_init(&data->mem_access_attr); data->mem_access_attr.attr.name = "mem_access"; - data->mem_access_attr.attr.mode = S_IRUGO | S_IWUGO; + data->mem_access_attr.attr.mode = S_IRUGO | S_IWUSR | S_IWGRP; data->mem_access_attr.read = mxt_mem_access_read; data->mem_access_attr.write = mxt_mem_access_write; data->mem_access_attr.size = 65535; -- cgit v1.2.3