From f291523b2976c118ed51bda35b6d9228272df994 Mon Sep 17 00:00:00 2001 From: Manoj Gangwal Date: Thu, 16 Jun 2011 14:31:58 +0530 Subject: ARM: tegra: rw permissions for TEGRA_MC_ATTRIBUTES Change the permission to 644 for 'enable' and 'quantum' TEGRA_MC_ATTRIBUTES to disable the write permission as CTS test "android.permission.cts.FileSystemPermissionTes t#testAllFilesInSysAreNotWritable" requires it as non-writable. Bug 840411 Reviewed-on: http://git-master/r/36878 (cherry picked from commit 88982e06ac4d0b91828542ec9eaabf6e2c9a03e0) Change-Id: Ie99ee941d976b08a5b145fafe9160d44ddcb9990 Reviewed-on: http://git-master/r/40797 Reviewed-by: David Schalig Tested-by: David Schalig Reviewed-by: Bharat Nihalani Reviewed-by: Manoj Gangwal --- arch/arm/mach-tegra/tegra2_mc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/arch/arm/mach-tegra/tegra2_mc.c b/arch/arm/mach-tegra/tegra2_mc.c index 6df9c232c02f..0c4c16c938b9 100644 --- a/arch/arm/mach-tegra/tegra2_mc.c +++ b/arch/arm/mach-tegra/tegra2_mc.c @@ -209,7 +209,7 @@ static ssize_t tegra_mc_quantum_store(struct sysdev_class *class, TEGRA_MC_EXPAND(_attr2,_mode2) \ TEGRA_MC_EXPAND(_attr3,_mode3) -TEGRA_MC_ATTRIBUTES(enable,0666,log,0444,quantum,0666) +TEGRA_MC_ATTRIBUTES(enable,0644,log,0444,quantum,0644) #undef TEGRA_MC_EXPAND @@ -217,7 +217,7 @@ TEGRA_MC_ATTRIBUTES(enable,0666,log,0444,quantum,0666) &attr_##_attr, static struct sysdev_class_attribute *tegra_mc_attrs[] = { - TEGRA_MC_ATTRIBUTES(enable,0666,log,0444,quantum,0666) + TEGRA_MC_ATTRIBUTES(enable,0644,log,0444,quantum,0644) NULL }; -- cgit v1.2.3