]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: samsung-laptop: fix up some sysfs attribute permissions
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 19:21:03 +0000 (11:21 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:10 +0000 (12:44 -0700)
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>
drivers/staging/samsung-laptop/samsung-laptop.c

index 4877138a9f96bb8756de408f9f55ae94be8fac4a..d46b6a3f50f0597b804639722fa050816eca06a3 100644 (file)
@@ -355,7 +355,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);