commit: ea4f4fa195aa079306669e20f23a271825a0e7a7 Author: David Sugar <dsugar <AT> tresys <DOT> com> AuthorDate: Fri Nov 16 17:43:25 2018 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ea4f4fa1
Interface to read cron_system_spool_t Useful for the case that manage isn't requied. Signed-off-by: Dave Sugar <dsugar <AT> tresys.com> Signed-off-by: Jason Zaman <jason <AT> perfinion.com> policy/modules/services/cron.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/services/cron.if b/policy/modules/services/cron.if index 7bb6065b..87f8322b 100644 --- a/policy/modules/services/cron.if +++ b/policy/modules/services/cron.if @@ -703,6 +703,26 @@ interface(`cron_manage_system_spool',` manage_files_pattern($1, system_cron_spool_t, system_cron_spool_t) ') +######################################## +## <summary> +## Read the system spool. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`cron_read_system_spool',` + gen_require(` + type system_cron_spool_t; + ') + + cron_search_spool($1) + list_dirs_pattern($1, system_cron_spool_t, system_cron_spool_t) + read_files_pattern($1, system_cron_spool_t, system_cron_spool_t) +') + ######################################## ## <summary> ## Read and write crond temporary files.