Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# storage_raw_read_fixed_disk(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_read_fixed_disk',`
Chris PeBenito b4cd15
requires_block_template(storage_raw_read_fixed_disk_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 fixed_disk_raw_read;
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 fixed_disk_device_t:blk_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_raw_read_fixed_disk_depend',`
Chris PeBenito b4cd15
type fixed_disk_device_t;
Chris PeBenito b4cd15
attribute fixed_disk_raw_read;
Chris PeBenito b4cd15
class blk_file { getattr read ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# storage_raw_write_fixed_disk(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_write_fixed_disk',`
Chris PeBenito b4cd15
requires_block_template(storage_raw_write_fixed_disk_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 fixed_disk_raw_write;
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 fixed_disk_device_t:blk_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_raw_write_fixed_disk_depend',`
Chris PeBenito b4cd15
type fixed_disk_device_t;
Chris PeBenito b4cd15
attribute fixed_disk_raw_write;
Chris PeBenito b4cd15
class blk_file { getattr write ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
# storage_get_fixed_disk_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_fixed_disk_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_get_fixed_disk_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 fixed_disk_device_t:blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_get_fixed_disk_attributes_depend',`
Chris PeBenito 8a0da1
type fixed_disk_device_t;
Chris PeBenito 8a0da1
class blk_file getattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# storage_set_fixed_disk_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_fixed_disk_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_set_fixed_disk_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 fixed_disk_device_t:blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_set_fixed_disk_attributes_depend',`
Chris PeBenito 8a0da1
type fixed_disk_device_t;
Chris PeBenito 8a0da1
class blk_file setattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito b4cd15
# storage_read_scsi_generic(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_read_scsi_generic',`
Chris PeBenito b4cd15
requires_block_template(storage_read_scsi_generic_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 scsi_generic_read;
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 scsi_generic_device_t:blk_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_read_scsi_generic_depend',`
Chris PeBenito b4cd15
type scsi_generic_device_t;
Chris PeBenito b4cd15
attribute scsi_generic_read;
Chris PeBenito b4cd15
class blk_file { getattr read ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# storage_write_scsi_generic(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_write_scsi_generic',`
Chris PeBenito b4cd15
requires_block_template(storage_write_scsi_generic_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 scsi_generic_write;
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 fixed_disk_device_t:blk_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_write_scsi_generic_depend',`
Chris PeBenito b4cd15
type scsi_generic_device_t;
Chris PeBenito b4cd15
attribute scsi_generic_write;
Chris PeBenito b4cd15
class blk_file { getattr write ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
# storage_get_scsi_generic_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_scsi_generic_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_get_scsi_generic_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 scsi_generic_device_t:blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_get_scsi_generic_attributes_depend',`
Chris PeBenito 8a0da1
type scsi_generic_device_t;
Chris PeBenito 8a0da1
class blk_file getattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# storage_set_scsi_generic_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_scsi_generic_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_set_scsi_generic_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 scsi_generic_device_t:blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_set_scsi_generic_attributes_depend',`
Chris PeBenito 8a0da1
type scsi_generic_device_t;
Chris PeBenito 8a0da1
class blk_file setattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito b4cd15
# storage_raw_read_removable_device(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_read_removable_device',`
Chris PeBenito b4cd15
requires_block_template(storage_raw_read_removable_device_depend,$2)
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 removable_device_t:blk_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_raw_read_removable_device_depend',`
Chris PeBenito b4cd15
type removable_device_t;
Chris PeBenito b4cd15
class blk_file { getattr read ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# storage_raw_write_removable_device(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_write_removable_device',`
Chris PeBenito b4cd15
requires_block_template(storage_raw_write_removable_device_depend,$2)
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 removable_device_t:blk_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_raw_write_removable_device_depend',`
Chris PeBenito b4cd15
type removable_device_t;
Chris PeBenito b4cd15
class blk_file { getattr write ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
# storage_get_removable_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_removable_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_get_removable_device_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 removable_device_t:blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_get_removable_device_attributes_depend',`
Chris PeBenito 8a0da1
type removable_device_t;
Chris PeBenito 8a0da1
class blk_file getattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# storage_set_removable_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_removable_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_set_removable_device_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 removable_device_t:blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_set_removable_device_attributes_depend',`
Chris PeBenito 8a0da1
type removable_device_t;
Chris PeBenito 8a0da1
class blk_file setattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito b4cd15
# storage_read_tape_device(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_read_tape_device',`
Chris PeBenito b4cd15
requires_block_template(storage_read_tape_device_depend,$2)
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 tape_device_t:blk_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_read_tape_device_depend',`
Chris PeBenito b4cd15
type tape_device_t;
Chris PeBenito b4cd15
class blk_file { getattr read ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# storage_write_tape_device(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_write_tape_device',`
Chris PeBenito b4cd15
requires_block_template(storage_write_tape_device_depend,$2)
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 tape_device_t:blk_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`storage_write_tape_device_depend',`
Chris PeBenito b4cd15
type tape_device_t;
Chris PeBenito b4cd15
class blk_file { getattr write ioctl };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# storage_get_tape_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_tape_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_get_tape_device_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 tape_device_t:blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_get_tape_device_attributes_depend',`
Chris PeBenito 8a0da1
type tape_device_t;
Chris PeBenito 8a0da1
class blk_file getattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# storage_set_tape_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_tape_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(storage_set_tape_device_attributes_depend,$2)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 tape_device_t:blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`storage_set_tape_device_attributes_depend',`
Chris PeBenito 8a0da1
type tape_device_t;
Chris PeBenito 8a0da1
class blk_file setattr;
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')