mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
net: can: at91_can: world-writable sysfs files
Don't allow everybody to write to mb0_id file. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fea3af6780
commit
fef52b0171
1 changed files with 1 additions and 1 deletions
|
@ -1109,7 +1109,7 @@ static ssize_t at91_sysfs_set_mb0_id(struct device *dev,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEVICE_ATTR(mb0_id, S_IWUGO | S_IRUGO,
|
static DEVICE_ATTR(mb0_id, S_IWUSR | S_IRUGO,
|
||||||
at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id);
|
at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id);
|
||||||
|
|
||||||
static struct attribute *at91_sysfs_attrs[] = {
|
static struct attribute *at91_sysfs_attrs[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue