diff options
author | Sachin Nikam <snikam@nvidia.com> | 2011-06-16 13:16:26 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:09 -0800 |
commit | cc7d5f544539a4aa28a64d925b3f2bcff5288c02 (patch) | |
tree | ee823b60a0c61b11e02b3e1603e779223bb72852 /arch/arm/mach-tegra/clock.c | |
parent | bd027678d1bdf95544b7f14df0e8019bf95596d9 (diff) |
ARM: tegra: sysfs write permission for user only
Giving read-write permission for user only for sysfs attributes.
Group and other will have only read permission.
- tegra_mc_stats: enable and quantum
- susend: mode
- clock: rate, parent, state
File System Permission CTS expects this to pass.
Bug 840409
Original-Change-Id: I3335b27124be38f0f5ea4cc415fef6532e574680
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/36867
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Rebase-Id: R3360698aa910479a0eccb460656d104912af99bb
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index e508c65bd8e6..dbece2914f5a 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -1066,7 +1066,7 @@ static int state_get(void *data, u64 *val) #ifdef CONFIG_TEGRA_CLOCK_DEBUG_WRITE -static const mode_t parent_rate_mode = S_IRUGO | S_IWUGO; +static const mode_t parent_rate_mode = S_IRUGO | S_IWUSR; static ssize_t parent_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) |