tmpfs associate for redhat

This commit is contained in:
Chris PeBenito 2005-05-27 20:43:37 +00:00
parent dd31631500
commit 07da0af7bd

View File

@ -7,14 +7,14 @@
define(`devices_make_device_node',` define(`devices_make_device_node',`
requires_block_template(`$0'_depend) requires_block_template(`$0'_depend)
typeattribute $1 device_node; typeattribute $1 device_node;
filesystem_associate($1,optional) filesystem_associate($1)
filesystem_tmpfs_associate($1,optional) optional_policy(`distro_redhat',`
filesystem_tmpfs_associate($1)
')
') ')
define(`devices_make_device_node_depend',` define(`devices_make_device_node_depend',`
attribute device_node; attribute device_node;
filesystem_associate_depend
filesystem_tmpfs_associate_depend
') ')
######################################## ########################################
@ -226,6 +226,9 @@ define(`devices_create_dev_entry',`
requires_block_template(`$0'_depend) requires_block_template(`$0'_depend)
allow $1 device_t:dir { getattr search read write add_name remove_name }; allow $1 device_t:dir { getattr search read write add_name remove_name };
type_transition $1 device_t:$3 $2; type_transition $1 device_t:$3 $2;
optional_policy(`distro_redhat',`
filesystem_tmpfs_associate($2)
')
') ')
define(`devices_set_dev_entry_depend',` define(`devices_set_dev_entry_depend',`