aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sugar <dsugar@tresys.com>2018-11-16 17:43:25 +0000
committerJason Zaman <jason@perfinion.com>2018-11-18 18:56:47 +0800
commitea4f4fa195aa079306669e20f23a271825a0e7a7 (patch)
treed9689a50e8b122f1bca7a87967166b7e0a84de2f
parentinterface to enable/disable systemd_networkd service (diff)
downloadhardened-refpolicy-ea4f4fa195aa079306669e20f23a271825a0e7a7.tar.gz
hardened-refpolicy-ea4f4fa195aa079306669e20f23a271825a0e7a7.tar.bz2
hardened-refpolicy-ea4f4fa195aa079306669e20f23a271825a0e7a7.zip
Interface to read cron_system_spool_t
Useful for the case that manage isn't requied. Signed-off-by: Dave Sugar <dsugar@tresys.com> Signed-off-by: Jason Zaman <jason@perfinion.com>
-rw-r--r--policy/modules/services/cron.if20
1 files changed, 20 insertions, 0 deletions
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
@@ -705,6 +705,26 @@ interface(`cron_manage_system_spool',`
########################################
## <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.
## </summary>
## <param name="domain">