mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
USB: misc: cypress_cy7c63: fix up some sysfs attribute permissions
They should not be writable by any user. Reported-by: Linus Torvalds <[email protected]> Cc: Oliver Bock <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
d9624e75f6
commit
c990600d34
1 changed files with 2 additions and 4 deletions
|
|
@ -196,11 +196,9 @@ static ssize_t get_port1_handler(struct device *dev,
|
|||
return read_port(dev, attr, buf, 1, CYPRESS_READ_PORT_ID1);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(port0, S_IWUGO | S_IRUGO,
|
||||
get_port0_handler, set_port0_handler);
|
||||
static DEVICE_ATTR(port0, S_IRUGO | S_IWUSR, get_port0_handler, set_port0_handler);
|
||||
|
||||
static DEVICE_ATTR(port1, S_IWUGO | S_IRUGO,
|
||||
get_port1_handler, set_port1_handler);
|
||||
static DEVICE_ATTR(port1, S_IRUGO | S_IWUSR, get_port1_handler, set_port1_handler);
|
||||
|
||||
|
||||
static int cypress_probe(struct usb_interface *interface,
|
||||
|
|
|
|||
Loading…
Reference in a new issue