diff options
author | Anton Blanchard <anton@samba.org> | 2014-06-07 11:29:01 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-06-11 17:03:15 +1000 |
commit | 1bd098903fda069cb96fe8b5cb4595b46c683385 (patch) | |
tree | b8e14f179cdd7433364916d85ba547e1bc3bb172 /arch | |
parent | ad417330628c60e83692211e7161eb49e1843318 (diff) | |
download | linux-stable-1bd098903fda069cb96fe8b5cb4595b46c683385.tar.gz linux-stable-1bd098903fda069cb96fe8b5cb4595b46c683385.tar.bz2 linux-stable-1bd098903fda069cb96fe8b5cb4595b46c683385.zip |
powernv: Fix permissions on sysparam sysfs entries
Everyone can write to these files, which is not what we want.
Cc: stable@vger.kernel.org # 3.15
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-sysparam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-sysparam.c b/arch/powerpc/platforms/powernv/opal-sysparam.c index d202f9bc3683..9d1acf22a099 100644 --- a/arch/powerpc/platforms/powernv/opal-sysparam.c +++ b/arch/powerpc/platforms/powernv/opal-sysparam.c @@ -260,10 +260,10 @@ void __init opal_sys_param_init(void) attr[i].kobj_attr.attr.mode = S_IRUGO; break; case OPAL_SYSPARAM_WRITE: - attr[i].kobj_attr.attr.mode = S_IWUGO; + attr[i].kobj_attr.attr.mode = S_IWUSR; break; case OPAL_SYSPARAM_RW: - attr[i].kobj_attr.attr.mode = S_IRUGO | S_IWUGO; + attr[i].kobj_attr.attr.mode = S_IRUGO | S_IWUSR; break; default: break; |