mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
scsi: core: Allow non-root users to perform ZBC commands
Allow users with read permissions to issue REPORT ZONE commands and users with write permissions to manage zones on block devices supporting the ZBC specification. Link: https://lore.kernel.org/r/20200226170518.92963-2-ryanattard@ryanattard.info Signed-off-by: Ryan Attard <ryanattard@ryanattard.info> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
1e067dd8a3
commit
6fdb79ff27
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,10 @@ static void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter)
|
||||||
__set_bit(GPCMD_LOAD_UNLOAD, filter->write_ok);
|
__set_bit(GPCMD_LOAD_UNLOAD, filter->write_ok);
|
||||||
__set_bit(GPCMD_SET_STREAMING, filter->write_ok);
|
__set_bit(GPCMD_SET_STREAMING, filter->write_ok);
|
||||||
__set_bit(GPCMD_SET_READ_AHEAD, filter->write_ok);
|
__set_bit(GPCMD_SET_READ_AHEAD, filter->write_ok);
|
||||||
|
|
||||||
|
/* ZBC Commands */
|
||||||
|
__set_bit(ZBC_OUT, filter->write_ok);
|
||||||
|
__set_bit(ZBC_IN, filter->read_ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
int blk_verify_command(unsigned char *cmd, fmode_t mode)
|
int blk_verify_command(unsigned char *cmd, fmode_t mode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue