projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0d0613
)
Avoid world-writable sysfs files in libata driver.
author
Vitaly Mayatskikh
<v.mayatskih@gmail.com>
Mon, 4 May 2009 13:48:45 +0000
(15:48 +0200)
committer
Jeff Garzik
<jgarzik@redhat.com>
Mon, 11 May 2009 18:31:31 +0000
(14:31 -0400)
Signed-off-by: Vitaly Mayatskikh <v.mayatskih@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/libata-scsi.c
b/drivers/ata/libata-scsi.c
index 2733b0c90b751182f6c5b57879debb8918ccca11..68d9132d8f6f10c62947d6365647269daa7cc20a 100644
(file)
--- a/
drivers/ata/libata-scsi.c
+++ b/
drivers/ata/libata-scsi.c
@@
-313,7
+313,7
@@
ata_scsi_em_message_show(struct device *dev, struct device_attribute *attr,
return ap->ops->em_show(ap, buf);
return -EINVAL;
}
-DEVICE_ATTR(em_message, S_IRUGO | S_IWU
GO
,
+DEVICE_ATTR(em_message, S_IRUGO | S_IWU
SR
,
ata_scsi_em_message_show, ata_scsi_em_message_store);
EXPORT_SYMBOL_GPL(dev_attr_em_message);
@@
-366,7
+366,7
@@
ata_scsi_activity_store(struct device *dev, struct device_attribute *attr,
}
return -EINVAL;
}
-DEVICE_ATTR(sw_activity, S_IWU
GO
| S_IRUGO, ata_scsi_activity_show,
+DEVICE_ATTR(sw_activity, S_IWU
SR
| S_IRUGO, ata_scsi_activity_show,
ata_scsi_activity_store);
EXPORT_SYMBOL_GPL(dev_attr_sw_activity);