All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] oident daemon fixes
@ 2012-08-08 14:19 Dominick Grift
  2012-08-08 18:55 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Dominick Grift @ 2012-08-08 14:19 UTC (permalink / raw)
  To: refpolicy


~/.oidentd.conf is a single file
Remove call to oidentd_read_user_home_content(): "its preferred that you
not create an interface only to use it internally unless its a
complicated concept you're trying to abstract".

Leaving the oidentd_read_user_home_content interface for backwards
compatibility.

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
diff --git a/oident.fc b/oident.fc
index 5840ea8..33b9aa0 100644
--- a/oident.fc
+++ b/oident.fc
@@ -1,4 +1,4 @@
-HOME_DIR/\.oidentd.conf			gen_context(system_u:object_r:oidentd_home_t, s0)
+HOME_DIR/\.oidentd.conf	--	gen_context(system_u:object_r:oidentd_home_t, s0)
 
 /etc/oidentd\.conf		--	gen_context(system_u:object_r:oidentd_config_t, s0)
 /etc/oidentd_masq\.conf		--	gen_context(system_u:object_r:oidentd_config_t, s0)
diff --git a/oident.te b/oident.te
index 8845174..6e5be53 100644
--- a/oident.te
+++ b/oident.te
@@ -34,6 +34,8 @@
 
 allow oidentd_t oidentd_config_t:file read_file_perms;
 
+allow oidentd_t oidentd_home_t:file read_file_perms;
+
 corenet_all_recvfrom_unlabeled(oidentd_t)
 corenet_all_recvfrom_netlabel(oidentd_t)
 corenet_tcp_sendrecv_generic_if(oidentd_t)
@@ -58,7 +60,7 @@
 
 sysnet_read_config(oidentd_t)
 
-oident_read_user_content(oidentd_t)
+userdom_search_user_home_dirs(oidentd_t)
 
 optional_policy(`
 	nis_use_ypbind(oidentd_t)

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

* [refpolicy] [PATCH] oident daemon fixes
  2012-08-08 14:19 [refpolicy] [PATCH] oident daemon fixes Dominick Grift
@ 2012-08-08 18:55 ` Christopher J. PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. PeBenito @ 2012-08-08 18:55 UTC (permalink / raw)
  To: refpolicy

On 08/08/12 10:19, Dominick Grift wrote:
> ~/.oidentd.conf is a single file
> Remove call to oidentd_read_user_home_content(): "its preferred that you
> not create an interface only to use it internally unless its a
> complicated concept you're trying to abstract".
> 
> Leaving the oidentd_read_user_home_content interface for backwards
> compatibility.

Merged.

 
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/oident.fc b/oident.fc
> index 5840ea8..33b9aa0 100644
> --- a/oident.fc
> +++ b/oident.fc
> @@ -1,4 +1,4 @@
> -HOME_DIR/\.oidentd.conf			gen_context(system_u:object_r:oidentd_home_t, s0)
> +HOME_DIR/\.oidentd.conf	--	gen_context(system_u:object_r:oidentd_home_t, s0)
>  
>  /etc/oidentd\.conf		--	gen_context(system_u:object_r:oidentd_config_t, s0)
>  /etc/oidentd_masq\.conf		--	gen_context(system_u:object_r:oidentd_config_t, s0)
> diff --git a/oident.te b/oident.te
> index 8845174..6e5be53 100644
> --- a/oident.te
> +++ b/oident.te
> @@ -34,6 +34,8 @@
>  
>  allow oidentd_t oidentd_config_t:file read_file_perms;
>  
> +allow oidentd_t oidentd_home_t:file read_file_perms;
> +
>  corenet_all_recvfrom_unlabeled(oidentd_t)
>  corenet_all_recvfrom_netlabel(oidentd_t)
>  corenet_tcp_sendrecv_generic_if(oidentd_t)
> @@ -58,7 +60,7 @@
>  
>  sysnet_read_config(oidentd_t)
>  
> -oident_read_user_content(oidentd_t)
> +userdom_search_user_home_dirs(oidentd_t)
>  
>  optional_policy(`
>  	nis_use_ypbind(oidentd_t)
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
> 


-- 
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:[~2012-08-08 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08 14:19 [refpolicy] [PATCH] oident daemon fixes Dominick Grift
2012-08-08 18:55 ` 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.