Skip to contentSkip to conversation

oident daemon fixes

PATCH New Dominick Grift 2 participants 2 messages Aug 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oident daemon fixes

~/.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.

oident.fc +1 -1
index 5840ea8..33b9aa0 100644
@@ -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)
oident.te +3 -1
index 8845174..6e5be53 100644
@@ -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)
#1 lore raw

PATCH 1/1 oident daemon fixes

Quoted 7 lines · Dominick Grift

~/.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.

Quoted 38 lines
oident.fc +1 -1
index 5840ea8..33b9aa0 100644
@@ -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)
oident.te +3 -1
index 8845174..6e5be53 100644
@@ -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

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com