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>
Tue, 16 Nov 2010 19:21:03 +0000 (11:21 -0800)
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>
drivers/staging/samsung-laptop/samsung-laptop.c

index eb44b60e1eb542d735cb0cbabbff1e55109008c9..28700b4982737e589bcb2faba04b865bd724671c 100644 (file)
@@ -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);