Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_raw_read_fixed_disk(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_read_fixed_disk',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
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 bd202f
# storage_raw_write_fixed_disk(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_write_fixed_disk',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
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 8e0280
# storage_raw_read_lvm_volume(domain)
Chris PeBenito 8e0280
#
Chris PeBenito 8e0280
define(`storage_raw_read_lvm_volume',`
Chris PeBenito 8e0280
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
typeattribute $1 fixed_disk_raw_read;
Chris PeBenito 8e0280
devices_list_device_nodes($1)
Chris PeBenito 8e0280
allow $1 lvm_vg_t:blk_file { getattr read ioctl };
Chris PeBenito 8e0280
')
Chris PeBenito 8e0280
Chris PeBenito 8e0280
define(`storage_raw_read_lvm_volume_depend',`
Chris PeBenito 8e0280
type lvm_vg_t;
Chris PeBenito 8e0280
attribute fixed_disk_raw_read;
Chris PeBenito 8e0280
class blk_file { getattr read ioctl };
Chris PeBenito 8e0280
')
Chris PeBenito 8e0280
Chris PeBenito 8e0280
########################################
Chris PeBenito 8e0280
#
Chris PeBenito 8e0280
# storage_raw_write_lvm_volume(domain)
Chris PeBenito 8e0280
#
Chris PeBenito 8e0280
define(`storage_raw_write_lvm_volume',`
Chris PeBenito 8e0280
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
typeattribute $1 fixed_disk_raw_write;
Chris PeBenito 8e0280
devices_list_device_nodes($1)
Chris PeBenito 8e0280
allow $1 lvm_vg_t:blk_file { getattr write ioctl };
Chris PeBenito 8e0280
')
Chris PeBenito 8e0280
Chris PeBenito 8e0280
define(`storage_raw_write_lvm_volume_depend',`
Chris PeBenito 8e0280
type lvm_vg_t;
Chris PeBenito 8e0280
attribute fixed_disk_raw_write;
Chris PeBenito 8e0280
class blk_file { getattr write ioctl };
Chris PeBenito 8e0280
')
Chris PeBenito 8e0280
Chris PeBenito 8e0280
########################################
Chris PeBenito 8e0280
#
Chris PeBenito bd202f
# storage_get_fixed_disk_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_fixed_disk_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_set_fixed_disk_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_fixed_disk_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_read_scsi_generic(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_read_scsi_generic',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
typeattribute $1 scsi_generic_read;
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_write_scsi_generic(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_write_scsi_generic',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
typeattribute $1 scsi_generic_write;
Chris PeBenito 8e0280
devices_list_device_nodes($1)
Chris PeBenito 8e0280
allow $1 scsi_generic_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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_get_scsi_generic_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_scsi_generic_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_set_scsi_generic_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_scsi_generic_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_raw_read_removable_device(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_read_removable_device',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_raw_write_removable_device(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_raw_write_removable_device',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_get_removable_device_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_removable_device_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_set_removable_device_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_removable_device_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_read_tape_device(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_read_tape_device',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# storage_write_tape_device(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`storage_write_tape_device',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_get_tape_device_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_get_tape_device_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito bd202f
# storage_set_tape_device_attributes(domain)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`storage_set_tape_device_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8e0280
devices_list_device_nodes($1)
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
')