mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
Staging: frontier: fix up some sysfs attribute permissions
commit3bad28ec00and2a767fda5dupstream merged together. They should not be writable by any user Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: David Taht <d@teklibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -204,7 +204,7 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
|
||||
t->value = temp; \
|
||||
return count; \
|
||||
} \
|
||||
static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value);
|
||||
static DEVICE_ATTR(value, S_IWUSR | S_IRUGO, show_##value, set_##value);
|
||||
|
||||
show_int(enable);
|
||||
show_int(offline);
|
||||
|
||||
Reference in New Issue
Block a user