2005-05-18 20:59:38 +00:00
|
|
|
## <module name="storage" layer="kernel">
|
2005-05-16 21:10:33 +00:00
|
|
|
## <summary>Policy controlling access to storage devices</summary>
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_get_fixed_disk_attributes">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to get the attributes of fixed disk
|
|
|
|
## device nodes.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="read" weight="7"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_get_fixed_disk_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 fixed_disk_device_t:blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_get_fixed_disk_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_ignore_get_fixed_disk_attributes">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts made by the caller to get
|
|
|
|
## the attributes of fixed disk device nodes.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process to not audit.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="none"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_ignore_get_fixed_disk_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 fixed_disk_device_t:blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_ignore_get_fixed_disk_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_set_fixed_disk_attributes">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to set the attributes of fixed disk
|
|
|
|
## device nodes.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="write" weight="7"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_set_fixed_disk_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 fixed_disk_device_t:blk_file setattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_set_fixed_disk_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file setattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
2005-04-20 19:07:16 +00:00
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_raw_read_fixed_disk">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly read from a fixed disk.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="read" weight="10"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_raw_read_fixed_disk',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 fixed_disk_device_t:blk_file r_file_perms;
|
|
|
|
typeattribute $1 fixed_disk_raw_read;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_raw_read_fixed_disk_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute fixed_disk_raw_read;
|
|
|
|
|
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-30 21:17:20 +00:00
|
|
|
## <interface name="storage_raw_write_fixed_disk">
|
2005-05-16 21:10:33 +00:00
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly write to a fixed disk.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="write" weight="10"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_raw_write_fixed_disk',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 fixed_disk_device_t:blk_file { getattr write ioctl };
|
|
|
|
typeattribute $1 fixed_disk_raw_write;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_raw_write_fixed_disk_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute fixed_disk_raw_write;
|
|
|
|
|
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file { getattr write ioctl };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-30 21:17:20 +00:00
|
|
|
########################################
|
|
|
|
## <interface name="storage_create_fixed_disk_dev_entry">
|
|
|
|
## <description>
|
|
|
|
## Create block devices in /dev with the fixed disk type.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="both" weight="10"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_create_fixed_disk_dev_entry',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 fixed_disk_device_t:blk_file create_file_perms;
|
|
|
|
devices_create_dev_entry($1,fixed_disk_device_t,blk_file)
|
|
|
|
typeattribute $1 fixed_disk_raw_read, fixed_disk_raw_write;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_create_fixed_disk_dev_entry_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file create_file_perms;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="storage_manage_fixed_disk">
|
|
|
|
## <description>
|
|
|
|
## Manage fixed disk device nodes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="both" weight="10"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_manage_fixed_disk',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 fixed_disk_device_t:blk_file create_file_perms;
|
|
|
|
typeattribute $1 fixed_disk_raw_read, fixed_disk_raw_write;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_manage_fixed_disk_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute fixed_disk_raw_read, fixed_disk_raw_write;
|
|
|
|
|
|
|
|
type fixed_disk_device_t;
|
|
|
|
|
|
|
|
class blk_file create_file_perms;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_raw_read_lvm_volume">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly read from a logical volume.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="read" weight="10"/>
|
|
|
|
## </interface>
|
2005-05-06 21:36:11 +00:00
|
|
|
#
|
|
|
|
define(`storage_raw_read_lvm_volume',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 lvm_vg_t:blk_file r_file_perms;
|
|
|
|
typeattribute $1 fixed_disk_raw_read;
|
2005-05-06 21:36:11 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_raw_read_lvm_volume_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute fixed_disk_raw_read;
|
|
|
|
|
|
|
|
type lvm_vg_t;
|
|
|
|
|
|
|
|
class blk_file r_file_perms;
|
2005-05-06 21:36:11 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_raw_write_lvm_volume">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly read from a logical volume.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="write" weight="10"/>
|
|
|
|
## </interface>
|
2005-05-06 21:36:11 +00:00
|
|
|
#
|
|
|
|
define(`storage_raw_write_lvm_volume',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 lvm_vg_t:blk_file { getattr write ioctl };
|
|
|
|
typeattribute $1 fixed_disk_raw_write;
|
2005-05-06 21:36:11 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_raw_write_lvm_volume_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute fixed_disk_raw_write;
|
|
|
|
|
|
|
|
type lvm_vg_t;
|
|
|
|
|
|
|
|
class blk_file { getattr write ioctl };
|
2005-05-06 21:36:11 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_read_scsi_generic">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly read, in a
|
|
|
|
## generic fashion, from any SCSI device.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="read" weight="10"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_read_scsi_generic',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 scsi_generic_device_t:blk_file r_file_perms;
|
|
|
|
typeattribute $1 scsi_generic_read;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_read_scsi_generic_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute scsi_generic_read;
|
|
|
|
|
|
|
|
type scsi_generic_device_t;
|
|
|
|
|
|
|
|
class blk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_write_scsi_generic">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to directly write, in a
|
|
|
|
## generic fashion, from any SCSI device.
|
|
|
|
## This is extremly dangerous as it can bypass the
|
|
|
|
## SELinux protections for filesystem objects, and
|
|
|
|
## should only be used by trusted domains.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="write" weight="10"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_write_scsi_generic',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 scsi_generic_device_t:blk_file { getattr write ioctl };
|
|
|
|
typeattribute $1 scsi_generic_write;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_write_scsi_generic_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute scsi_generic_write;
|
|
|
|
|
|
|
|
type scsi_generic_device_t;
|
|
|
|
|
|
|
|
class blk_file { getattr write ioctl };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-04-22 19:31:32 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_get_scsi_generic_attributes(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
|
|
|
define(`storage_get_scsi_generic_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 scsi_generic_device_t:blk_file getattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_get_scsi_generic_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type scsi_generic_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_set_scsi_generic_attributes(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
|
|
|
define(`storage_set_scsi_generic_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 scsi_generic_device_t:blk_file setattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_set_scsi_generic_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type scsi_generic_device_t;
|
|
|
|
|
|
|
|
class blk_file setattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_get_removable_device_attributes">
|
|
|
|
## <description>
|
|
|
|
## Allow the caller to get the attributes of removable
|
|
|
|
## devices device nodes.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="read" weight="7"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_get_removable_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 removable_device_t:blk_file getattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_get_removable_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type removable_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
########################################
|
2005-05-16 21:10:33 +00:00
|
|
|
## <interface name="storage_ignore_get_removable_device_attributes">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts made by the caller to get
|
|
|
|
## the attributes of removable devices device nodes.
|
|
|
|
## </description>
|
2005-05-18 20:59:38 +00:00
|
|
|
## <parameter name="domain">
|
2005-05-16 21:10:33 +00:00
|
|
|
## The type of the process to not audit.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="none"/>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`storage_ignore_get_removable_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 removable_device_t:blk_file getattr;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_ignore_get_removable_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type removable_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
# storage_set_removable_device_attributes(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_set_removable_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 removable_device_t:blk_file setattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_set_removable_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type removable_device_t;
|
|
|
|
|
|
|
|
class blk_file setattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-04-22 19:31:32 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
# storage_raw_read_removable_device(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_raw_read_removable_device',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 removable_device_t:blk_file r_file_perms;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_raw_read_removable_device_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type removable_device_t;
|
|
|
|
|
|
|
|
class blk_file r_file_perms;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
# storage_raw_write_removable_device(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_raw_write_removable_device',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 removable_device_t:blk_file { getattr write ioctl };
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
define(`storage_raw_write_removable_device_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type removable_device_t;
|
|
|
|
|
|
|
|
class blk_file { getattr write ioctl };
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_read_tape_device(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_read_tape_device',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 tape_device_t:blk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_read_tape_device_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type tape_device_t;
|
|
|
|
|
|
|
|
class blk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_write_tape_device(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`storage_write_tape_device',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 tape_device_t:blk_file { getattr write ioctl };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_write_tape_device_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type tape_device_t;
|
|
|
|
|
|
|
|
class blk_file { getattr write ioctl };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
2005-04-22 19:31:32 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_get_tape_device_attributes(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
|
|
|
define(`storage_get_tape_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 tape_device_t:blk_file getattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_get_tape_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type tape_device_t;
|
|
|
|
|
|
|
|
class blk_file getattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# storage_set_tape_device_attributes(domain)
|
2005-04-22 19:31:32 +00:00
|
|
|
#
|
|
|
|
define(`storage_set_tape_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
allow $1 tape_device_t:blk_file setattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`storage_set_tape_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type tape_device_t;
|
|
|
|
class blk_file setattr;
|
2005-04-22 19:31:32 +00:00
|
|
|
')
|
2005-05-16 21:10:33 +00:00
|
|
|
|
2005-05-18 20:59:38 +00:00
|
|
|
## </module>
|