Skip to content

Commit

Permalink
Staging: frontier: fix up some sysfs attribute permissions
Browse files Browse the repository at this point in the history
They should not be writable by any user

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Taht <d@teklibre.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Nov 16, 2010
1 parent 590b0b9 commit 3bad28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/frontier/tranzport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_IRUSR | S_IRUGO, show_##value, set_##value);

show_int(enable);
show_int(offline);
Expand Down

0 comments on commit 3bad28e

Please sign in to comment.