From: David Sugar <dsugar@tresys.com>
To: "selinux-refpolicy@vger.kernel.org" <selinux-refpolicy@vger.kernel.org>
Subject: [PATCH] Interface to read cron_system_spool_t
Date: Fri, 16 Nov 2018 17:43:25 +0000 [thread overview]
Message-ID: <20181116174221.1254-1-dsugar@tresys.com> (raw)
Useful for the case that manage isn't requied.
Signed-off-by: Dave Sugar <dsugar@tresys.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 d40848ab..3278c216 100644
--- a/policy/modules/services/cron.if
+++ b/policy/modules/services/cron.if
@@ -706,6 +706,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.
--
2.19.1
next reply other threads:[~2018-11-16 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 17:43 David Sugar [this message]
2018-11-17 23:54 ` [PATCH] Interface to read cron_system_spool_t Chris PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181116174221.1254-1-dsugar@tresys.com \
--to=dsugar@tresys.com \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).