diff options
author | Manoj Gangwal <mgangwal@nvidia.com> | 2011-06-16 14:31:58 +0530 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-07-13 18:11:59 -0700 |
commit | f291523b2976c118ed51bda35b6d9228272df994 (patch) | |
tree | 20e564218681295962a321a8bccab3c0d16f0b63 /arch | |
parent | c6e3ab35c952d6bb646a073921f420b16cb24768 (diff) |
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 <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/tegra2_mc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 }; |