Skip to content

Commit

Permalink
net: can: janz-ican3: world-writable sysfs termination file
Browse files Browse the repository at this point in the history
Don't allow everybody to set terminator via sysfs.

Signed-off-by: Vasiliy Kulikov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
segoon authored and davem330 committed Feb 4, 2011
1 parent fef52b0 commit 1e6d93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/janz-ican3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ static ssize_t ican3_sysfs_set_term(struct device *dev,
return count;
}

static DEVICE_ATTR(termination, S_IWUGO | S_IRUGO, ican3_sysfs_show_term,
static DEVICE_ATTR(termination, S_IWUSR | S_IRUGO, ican3_sysfs_show_term,
ican3_sysfs_set_term);

static struct attribute *ican3_sysfs_attrs[] = {
Expand Down

0 comments on commit 1e6d93e

Please sign in to comment.