Re: [PATCH] allow root to modify raw scsi command permissions list
From: Marc Ballarin
Date: Tue Sep 14 2004 - 17:51:57 EST
On Tue, 14 Sep 2004 10:51:10 -0400
Peter Jones <pjones@xxxxxxxxxx> wrote:
Good to see someone do this. I tried myself but didn't get very far.
> diff -urpN linux-2.5-export/drivers/block/genhd.c pjones-2.5-export/drivers/block/genhd.c
...
> };
> +static struct disk_attribute disk_attribute_driver = {
This obviously needs to be
+static struct disk_attribute disk_attr_driver = {
otherwise the following part won't work:
> @@ -409,6 +422,7 @@ static struct attribute * default_attrs[
> &disk_attr_removable.attr,
> &disk_attr_size.attr,
> &disk_attr_stat.attr,
> + &disk_attr_driver.attr,
> NULL,
> };
Additionally, the naming "rawio_cmd_filter" and RCF_* seems a bit
confusing (after all raw IO usually refers to O_DIRECT file access).
"sg_cmd_filter" and SGF_* appear to be a better choice IMHO.
How should changes to the table be made? I suppose something like "echo
add 04 > ok_read_commands". But rcf_store doesn't seem to get called. Am I
missing something?
Regards, and thanks for this patch
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/