ARM: tegra: reduce write permission of pinmux debugfs
Simon Je [Fri, 31 May 2013 14:37:46 +0000 (23:37 +0900)]
Pinmux debugfs don't need to allow every user to write,
which causes failure of
android.permission.cts.FileSystemPermissionTest

Bug 1298831

Change-Id: I9fbb909573c013633e37600626298914f550bb6c
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/234566
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

arch/arm/mach-tegra/pinmux.c

index 54bad55..732204d 100644 (file)
@@ -2,7 +2,7 @@
  * linux/arch/arm/mach-tegra/pinmux.c
  *
  * Copyright (C) 2010 Google, Inc.
- * Copyright (C) 2011-2012 NVIDIA Corporation. All rights reserved.
+ * Copyright (C) 2011-2013 NVIDIA Corporation. All rights reserved.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
@@ -1375,7 +1375,7 @@ static const struct file_operations debug_drive_fops = {
 
 static int __init tegra_pinmux_debuginit(void)
 {
-       (void) debugfs_create_file("tegra_pinmux", S_IRUGO | S_IWUGO,
+       (void) debugfs_create_file("tegra_pinmux", S_IRUGO | S_IWUSR,
                                        NULL, NULL, &debug_fops);
        (void) debugfs_create_file("tegra_pinmux_drive", S_IRUGO,
                                        NULL, NULL, &debug_drive_fops);