mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
1d904e8950
commit
90c05b97fd
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user