Skip to contentSkip to conversation

rpc domains do not need to bubd to all ports, just rpc porst

PATCH [email protected] 1 participant 1 message May 30, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

If I create a file in a homedir in nfs it needs to transition properly

policy/modules/services/rpc.if +4 -1
@@ -89,8 +89,11 @@
 	# bind to arbitary unused ports
 	corenet_tcp_bind_generic_port($1_t)
 	corenet_udp_bind_generic_port($1_t)
-	corenet_udp_bind_reserved_port($1_t)
+	corenet_dontaudit_tcp_bind_all_ports($1_t)
+	corenet_dontaudit_udp_bind_all_ports($1_t)
 	corenet_sendrecv_generic_server_packets($1_t)
+	corenet_tcp_bind_all_rpc_ports($1_t)
+	corenet_udp_bind_all_rpc_ports($1_t)
 
 	fs_rw_rpc_named_pipes($1_t) 
 	fs_search_auto_mountpoints($1_t)
policy/modules/services/rpc.te +2 -2
@@ -79,6 +79,7 @@
 
 optional_policy(`
 	nis_read_ypserv_config(rpcd_t)
+	nis_use_ypbind(rpcd_t)
 ')
 
 ########################################
@@ -123,6 +124,7 @@
 tunable_policy(`nfs_export_all_rw',`
 	fs_read_noxattr_fs_files(nfsd_t) 
 	auth_manage_all_files_except_shadow(nfsd_t)
+	userdom_generic_user_home_dir_filetrans_generic_user_home_content(nfsd_t, { file dir })
 ')
 
 tunable_policy(`nfs_export_all_ro',`
@@ -159,8 +161,6 @@
 miscfiles_read_certs(gssd_t)
 
 ifdef(`targeted_policy',`
-	files_read_generic_tmp_files(gssd_t) 
-	files_read_generic_tmp_symlinks(gssd_t) 
 	# Manage the users kerberos tgt file
 	files_manage_generic_tmp_files(gssd_t) 
 ')

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.