diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-02 15:36:56 -0800 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-10 08:37:17 -0800 |
commit | 041013a40a308c22310a248b1ab6d16c54ed0cce (patch) | |
tree | 7be41771e57ef002cfb6a793e973a7cc36fc5987 /drivers/cpufreq | |
parent | ab0a38df23c327f5dff71c965969a8fcfcf44f2c (diff) |
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 <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/79096
(cherry picked from commit f1d91095baff48e58a04af0062f579f394094b47)
Change-Id: Id9542a202bcf02f886cfee9c0bbe69cc83b8c200
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82726
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |