add interfaces to eventually clean up the storage_create_fixed_disk(_tmpfs)?() mess

This commit is contained in:
Chris PeBenito 2006-02-27 15:39:28 +00:00
parent 02bcb8b32d
commit 675a0ee76d

View File

@ -230,6 +230,44 @@ interface(`storage_create_fixed_disk_tmpfs',`
typeattribute $1 fixed_disk_raw_read, fixed_disk_raw_write;
')
########################################
## <summary>
## Create block devices in /dev with the fixed disk type
## via an automatic type transition.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`storage_dev_filetrans_fixed_disk',`
gen_require(`
type fixed_disk_device_t;
')
dev_filetrans($1,fixed_disk_device_t,blk_file)
')
########################################
## <summary>
## Create block devices in on a tmpfs filesystem with the
## fixed disk type via an automatic type transition.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`storage_tmpfs_filetrans_fixed_disk',`
gen_require(`
type fixed_disk_device_t;
')
fs_tmpfs_filetrans($1,fixed_disk_device_t,blk_file)
')
########################################
## <summary>
## Relabel fixed disk device nodes.