diff --git a/refpolicy/policy/modules/kernel/storage.if b/refpolicy/policy/modules/kernel/storage.if index 81152e9..1033693 100644 --- a/refpolicy/policy/modules/kernel/storage.if +++ b/refpolicy/policy/modules/kernel/storage.if @@ -232,6 +232,44 @@ interface(`storage_create_fixed_disk_tmpfs',` ######################################## ## +## 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. ## ##