From 675a0ee76dcc19ebfcb9f87ce0c182bee890dc22 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Mon, 27 Feb 2006 15:39:28 +0000 Subject: [PATCH] add interfaces to eventually clean up the storage_create_fixed_disk(_tmpfs)?() mess --- refpolicy/policy/modules/kernel/storage.if | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) 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.