diff --git a/refpolicy/policy/modules/kernel/storage.if b/refpolicy/policy/modules/kernel/storage.if index 81152e90..10336935 100644 --- a/refpolicy/policy/modules/kernel/storage.if +++ b/refpolicy/policy/modules/kernel/storage.if @@ -230,6 +230,44 @@ interface(`storage_create_fixed_disk_tmpfs',` typeattribute $1 fixed_disk_raw_read, fixed_disk_raw_write; ') +######################################## +## +## Create block devices in /dev with the fixed disk type +## via an automatic type transition. +## +## +## +## The type of the process performing this action. +## +## +# +interface(`storage_dev_filetrans_fixed_disk',` + gen_require(` + type fixed_disk_device_t; + ') + + dev_filetrans($1,fixed_disk_device_t,blk_file) +') + +######################################## +## +## Create block devices in on a tmpfs filesystem with the +## fixed disk type via an automatic type transition. +## +## +## +## The type of the process performing this action. +## +## +# +interface(`storage_tmpfs_filetrans_fixed_disk',` + gen_require(` + type fixed_disk_device_t; + ') + + fs_tmpfs_filetrans($1,fixed_disk_device_t,blk_file) +') + ######################################## ## ## Relabel fixed disk device nodes.