From 7bd58d27f524cf65b8638f9394e6346ee6c91901 Mon Sep 17 00:00:00 2001 From: Sachin Nikam Date: Thu, 16 Jun 2011 13:16:26 +0530 Subject: 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 Change-Id: I3335b27124be38f0f5ea4cc415fef6532e574680 Signed-off-by: Sachin Nikam Reviewed-on: http://git-master/r/36867 Reviewed-by: Niket Sirsi Tested-by: Niket Sirsi --- arch/arm/mach-tegra/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-tegra/clock.c') diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index f8b95a7ee200..f1b45b3f3dc2 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -1065,7 +1065,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) -- cgit v1.2.3