From: sven.vermeulen@siphos.be (Sven Vermeulen) Date: Wed, 4 Jan 2012 21:01:53 +0100 Subject: [refpolicy] [PATCH 2/5] Support listing module configuration files In-Reply-To: <20120104200014.GA6512@siphos.be> References: <20120104200014.GA6512@siphos.be> Message-ID: <20120104200153.GC6512@siphos.be> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Dracut, an application that creates an initramfs based on the systems' requirements, needs to list the module configuration files to function. This adds in this interface for this purpose. Signed-off-by: Sven Vermeulen --- policy/modules/system/modutils.if | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/modutils.if b/policy/modules/system/modutils.if index 350c450..2ed57a9 100644 --- a/policy/modules/system/modutils.if +++ b/policy/modules/system/modutils.if @@ -39,6 +39,25 @@ interface(`modutils_read_module_deps',` ######################################## ## +## List the module configuration option files +## +## +## +## Domain allowed access. +## +## +# +interface(`modutils_list_module_config',` + gen_require(` + type modules_conf_t; + ') + + list_dirs_pattern($1, modules_conf_t, modules_conf_t) +') + + +######################################## +## ## Read the configuration options used when ## loading modules. ## -- 1.7.3.4