diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:21:03 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:21:03 -0800 |
commit | 90c05b97fdec8d2196e420d98f774bab731af7aa (patch) | |
tree | 364d0a4c3673a9fb69b37aa0f75dc38f8d52ea86 /drivers/staging/samsung-laptop | |
parent | 1d904e8950c86e670ace237eaea1d48cd81e94df (diff) | |
download | linux-stable-90c05b97fdec8d2196e420d98f774bab731af7aa.tar.gz linux-stable-90c05b97fdec8d2196e420d98f774bab731af7aa.tar.bz2 linux-stable-90c05b97fdec8d2196e420d98f774bab731af7aa.zip |
Staging: samsung-laptop: fix up some sysfs attribute permissions
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/samsung-laptop')
-rw-r--r-- | drivers/staging/samsung-laptop/samsung-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/samsung-laptop/samsung-laptop.c b/drivers/staging/samsung-laptop/samsung-laptop.c index eb44b60e1eb5..28700b498273 100644 --- a/drivers/staging/samsung-laptop/samsung-laptop.c +++ b/drivers/staging/samsung-laptop/samsung-laptop.c @@ -356,7 +356,7 @@ static ssize_t set_silent_state(struct device *dev, } return count; } -static DEVICE_ATTR(silent, S_IWUGO | S_IRUGO, +static DEVICE_ATTR(silent, S_IRUSR | S_IRUGO, get_silent_state, set_silent_state); |