SELinux-Refpolicy Archive on lore.kernel.org
 help / Atom feed
* [PATCH] Interface to read cron_system_spool_t
@ 2018-11-16 17:43 David Sugar
  2018-11-17 23:54 ` Chris PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: David Sugar @ 2018-11-16 17:43 UTC (permalink / raw)
  To: selinux-refpolicy

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Interface to read cron_system_spool_t
  2018-11-16 17:43 [PATCH] Interface to read cron_system_spool_t David Sugar
@ 2018-11-17 23:54 ` Chris PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2018-11-17 23:54 UTC (permalink / raw)
  To: David Sugar, selinux-refpolicy

On 11/16/18 12:43 PM, David Sugar wrote:
> 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.

Merged.

-- 
Chris PeBenito

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-16 17:43 [PATCH] Interface to read cron_system_spool_t David Sugar
2018-11-17 23:54 ` Chris PeBenito

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable: git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org selinux-refpolicy@archiver.kernel.org
	public-inbox-index selinux-refpolicy


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/ public-inbox