diff options
author | Vitaly Mayatskikh <v.mayatskih@gmail.com> | 2009-05-04 17:48:45 +0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-05-11 22:31:31 +0400 |
commit | ea7a5ed58fa40c76ff87c0dd960f1d785009dd6d (patch) | |
tree | b7b8f2dcc3509c581c640020a8dd9f1b063ba8d3 /drivers/ata/libata-scsi.c | |
parent | f0d0613dedda4891ecb1977e4d02bf9be93882a3 (diff) | |
download | linux-ea7a5ed58fa40c76ff87c0dd960f1d785009dd6d.tar.xz |
Avoid world-writable sysfs files in libata driver.
Signed-off-by: Vitaly Mayatskikh <v.mayatskih@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 2733b0c90b75..68d9132d8f6f 100644 --- 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_IWUGO, +DEVICE_ATTR(em_message, S_IRUGO | S_IWUSR, 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_IWUGO | S_IRUGO, ata_scsi_activity_show, +DEVICE_ATTR(sw_activity, S_IWUSR | S_IRUGO, ata_scsi_activity_show, ata_scsi_activity_store); EXPORT_SYMBOL_GPL(dev_attr_sw_activity); |