diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:21:03 -0800 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-14 23:40:16 +0100 |
commit | ac0d92d5f069c3db8796a0cc9c75ea7e6be5e4a8 (patch) | |
tree | c2bb8fcbfac2e4c426a8489659d912bcb676ec82 /drivers | |
parent | 7e9c5c7682a9c821919210b036b3d3779ad06d8f (diff) |
Staging: samsung-laptop: fix up some sysfs attribute permissions
commit 90c05b97fdec8d2196e420d98f774bab731af7aa upstream.
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers')
-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 eb44b60e1eb..28700b49827 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); |