diff --git a/refpolicy/policy/modules/system/files.if b/refpolicy/policy/modules/system/files.if index 08ebc58..66ebcc5 100644 --- a/refpolicy/policy/modules/system/files.if +++ b/refpolicy/policy/modules/system/files.if @@ -41,6 +41,20 @@ class sock_file getattr; ######################################## # +# files_search_all_directories(type,[`optional']) +# +define(`files_search_all_directories',` +requires_block_template(files_get_all_file_attributes_depend,$2) +allow $1 file_type:dir search; +') + +define(`files_get_all_file_attributes_depend',` +attribute file_type; +class dir search; +') + +######################################## +# # files_read_root_dir(domain,[`optional']) # define(`files_read_root_dir',`