All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 04/15] Fix file contexts, add Gentoo-specific (?) location
@ 2011-03-09 21:09 Sven Vermeulen
  2011-03-22 12:48 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Vermeulen @ 2011-03-09 21:09 UTC (permalink / raw)
  To: refpolicy

Update on the file contexts for courier-imap. Also fixes a few context 
directives which didn't update the directory itself.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 policy/modules/services/courier.fc |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/policy/modules/services/courier.fc b/policy/modules/services/courier.fc
index f1bf79a..e1bfcca 100644
--- a/policy/modules/services/courier.fc
+++ b/policy/modules/services/courier.fc
@@ -5,8 +5,10 @@
 /usr/sbin/courierlogger			--	gen_context(system_u:object_r:courier_exec_t,s0)
 /usr/sbin/courierldapaliasd		--	gen_context(system_u:object_r:courier_exec_t,s0)
 /usr/sbin/couriertcpd			--	gen_context(system_u:object_r:courier_tcpd_exec_t,s0)
-
-/usr/lib(64)?/courier/authlib/.*	--	gen_context(system_u:object_r:courier_authdaemon_exec_t,s0)
+ifdef(`distro_gentoo',`
+/usr/lib(64)?/courier-imap/couriertcpd	--	gen_context(system_u:object_r:courier_tcpd_exec_t,s0)
+')
+/usr/lib(64)?/courier/(courier-)?authlib/.*	--	gen_context(system_u:object_r:courier_authdaemon_exec_t,s0)
 /usr/lib(64)?/courier/courier/.*	--	gen_context(system_u:object_r:courier_exec_t,s0)
 /usr/lib(64)?/courier/courier/courierpop.* --	gen_context(system_u:object_r:courier_pop_exec_t,s0)
 /usr/lib(64)?/courier/courier/imaplogin --	gen_context(system_u:object_r:courier_pop_exec_t,s0)
@@ -16,9 +18,9 @@
 /usr/lib(64)?/courier/rootcerts(/.*)?		gen_context(system_u:object_r:courier_etc_t,s0)
 /usr/lib(64)?/courier/sqwebmail/cleancache\.pl -- gen_context(system_u:object_r:sqwebmail_cron_exec_t,s0)
 
-/var/lib/courier(/.*)?			--	gen_context(system_u:object_r:courier_var_lib_t,s0)
+/var/lib/courier(/.*)?				gen_context(system_u:object_r:courier_var_lib_t,s0)
 
-/var/run/courier(/.*)?			--	gen_context(system_u:object_r:courier_var_run_t,s0)
+/var/run/courier(/.*)?				gen_context(system_u:object_r:courier_var_run_t,s0)
 
 /var/spool/authdaemon(/.*)?			gen_context(system_u:object_r:courier_spool_t,s0)
 /var/spool/courier(/.*)?			gen_context(system_u:object_r:courier_spool_t,s0)
-- 
1.7.3.4

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

* [refpolicy] [PATCH 04/15] Fix file contexts, add Gentoo-specific (?) location
  2011-03-09 21:09 [refpolicy] [PATCH 04/15] Fix file contexts, add Gentoo-specific (?) location Sven Vermeulen
@ 2011-03-22 12:48 ` Christopher J. PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. PeBenito @ 2011-03-22 12:48 UTC (permalink / raw)
  To: refpolicy

On 03/09/11 16:09, Sven Vermeulen wrote:
> Update on the file contexts for courier-imap. Also fixes a few context 
> directives which didn't update the directory itself.

Merged.

> Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
> ---
>  policy/modules/services/courier.fc |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/policy/modules/services/courier.fc b/policy/modules/services/courier.fc
> index f1bf79a..e1bfcca 100644
> --- a/policy/modules/services/courier.fc
> +++ b/policy/modules/services/courier.fc
> @@ -5,8 +5,10 @@
>  /usr/sbin/courierlogger			--	gen_context(system_u:object_r:courier_exec_t,s0)
>  /usr/sbin/courierldapaliasd		--	gen_context(system_u:object_r:courier_exec_t,s0)
>  /usr/sbin/couriertcpd			--	gen_context(system_u:object_r:courier_tcpd_exec_t,s0)
> -
> -/usr/lib(64)?/courier/authlib/.*	--	gen_context(system_u:object_r:courier_authdaemon_exec_t,s0)
> +ifdef(`distro_gentoo',`
> +/usr/lib(64)?/courier-imap/couriertcpd	--	gen_context(system_u:object_r:courier_tcpd_exec_t,s0)
> +')
> +/usr/lib(64)?/courier/(courier-)?authlib/.*	--	gen_context(system_u:object_r:courier_authdaemon_exec_t,s0)
>  /usr/lib(64)?/courier/courier/.*	--	gen_context(system_u:object_r:courier_exec_t,s0)
>  /usr/lib(64)?/courier/courier/courierpop.* --	gen_context(system_u:object_r:courier_pop_exec_t,s0)
>  /usr/lib(64)?/courier/courier/imaplogin --	gen_context(system_u:object_r:courier_pop_exec_t,s0)
> @@ -16,9 +18,9 @@
>  /usr/lib(64)?/courier/rootcerts(/.*)?		gen_context(system_u:object_r:courier_etc_t,s0)
>  /usr/lib(64)?/courier/sqwebmail/cleancache\.pl -- gen_context(system_u:object_r:sqwebmail_cron_exec_t,s0)
>  
> -/var/lib/courier(/.*)?			--	gen_context(system_u:object_r:courier_var_lib_t,s0)
> +/var/lib/courier(/.*)?				gen_context(system_u:object_r:courier_var_lib_t,s0)
>  
> -/var/run/courier(/.*)?			--	gen_context(system_u:object_r:courier_var_run_t,s0)
> +/var/run/courier(/.*)?				gen_context(system_u:object_r:courier_var_run_t,s0)
>  
>  /var/spool/authdaemon(/.*)?			gen_context(system_u:object_r:courier_spool_t,s0)
>  /var/spool/courier(/.*)?			gen_context(system_u:object_r:courier_spool_t,s0)


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

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

end of thread, other threads:[~2011-03-22 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 21:09 [refpolicy] [PATCH 04/15] Fix file contexts, add Gentoo-specific (?) location Sven Vermeulen
2011-03-22 12:48 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.