From 041013a40a308c22310a248b1ab6d16c54ed0cce Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 2 Feb 2012 15:36:56 -0800 Subject: cpufreq interactive governor: Reduce permissions Reduce permissions on the max_boost and go_maxspeed_load, the init scripts will change their owner so the current users continue to work. Bug 906796 Signed-off-by: Dan Willemsen Reviewed-on: http://git-master/r/79096 (cherry picked from commit f1d91095baff48e58a04af0062f579f394094b47) Change-Id: Id9542a202bcf02f886cfee9c0bbe69cc83b8c200 Signed-off-by: Pritesh Raithatha Reviewed-on: http://git-master/r/82726 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar Tested-by: Varun Wadekar --- drivers/cpufreq/cpufreq_interactive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/cpufreq') diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index a8d29afc709f..44e97a6816a9 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -482,7 +482,7 @@ static ssize_t store_go_maxspeed_load(struct kobject *kobj, return count; } -static struct global_attr go_maxspeed_load_attr = __ATTR(go_maxspeed_load, 0666, +static struct global_attr go_maxspeed_load_attr = __ATTR(go_maxspeed_load, 0644, show_go_maxspeed_load, store_go_maxspeed_load); static ssize_t show_boost_factor(struct kobject *kobj, @@ -516,7 +516,7 @@ static ssize_t store_max_boost(struct kobject *kobj, return -EINVAL; } -static struct global_attr max_boost_attr = __ATTR(max_boost, 0666, +static struct global_attr max_boost_attr = __ATTR(max_boost, 0644, show_max_boost, store_max_boost); -- cgit v1.2.3