Chris PeBenito 4be8dd
## <summary>Filesystem namespacing/polyinstantiation application.</summary>
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
## <summary>
Chris PeBenito 4be8dd
##	Execute a domain transition to run seunshare.
Chris PeBenito 4be8dd
## </summary>
Chris PeBenito 4be8dd
## <param name="domain">
Chris PeBenito 4be8dd
## <summary>
Chris PeBenito 4be8dd
##	Domain allowed to transition.
Chris PeBenito 4be8dd
## </summary>
Chris PeBenito 4be8dd
## </param>
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
interface(`seunshare_domtrans',`
Chris PeBenito 4be8dd
	gen_require(`
Chris PeBenito 4be8dd
		type seunshare_t, seunshare_exec_t;
Chris PeBenito 4be8dd
	')
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
	domtrans_pattern($1, seunshare_exec_t, seunshare_t)
Chris PeBenito 4be8dd
')
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
## <summary>
Chris PeBenito 4be8dd
##	Execute seunshare in the seunshare domain, and
Chris PeBenito 4be8dd
##	allow the specified role the seunshare domain.
Chris PeBenito 4be8dd
## </summary>
Chris PeBenito 4be8dd
## <param name="domain">
Chris PeBenito 4be8dd
##	<summary>
Dominick Grift 03b866
##	Domain allowed to transition.
Chris PeBenito 4be8dd
##	</summary>
Chris PeBenito 4be8dd
## </param>
Chris PeBenito 4be8dd
## <param name="role">
Chris PeBenito 4be8dd
##	<summary>
Chris PeBenito 4be8dd
##	Role allowed access.
Chris PeBenito 4be8dd
##	</summary>
Chris PeBenito 4be8dd
## </param>
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
interface(`seunshare_run',`
Chris PeBenito 4be8dd
	gen_require(`
Chris PeBenito 4be8dd
		type seunshare_t;
Chris PeBenito 4be8dd
	')
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
	seunshare_domtrans($1)
Chris PeBenito 4be8dd
	role $2 types seunshare_t;
Chris PeBenito 46b037
Chris PeBenito 46b037
	allow $1 seunshare_t:process signal_perms;
Chris PeBenito 46b037
Chris PeBenito 46b037
	ifdef(`hide_broken_symptoms', `
Chris PeBenito 46b037
		dontaudit seunshare_t $1:tcp_socket rw_socket_perms;
Chris PeBenito 46b037
		dontaudit seunshare_t $1:udp_socket rw_socket_perms;
Chris PeBenito 46b037
		dontaudit seunshare_t $1:unix_stream_socket rw_socket_perms;
Chris PeBenito 46b037
	')
Chris PeBenito 4be8dd
')
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
## <summary>
Chris PeBenito 4be8dd
##	Role access for seunshare
Chris PeBenito 4be8dd
## </summary>
Chris PeBenito 4be8dd
## <param name="role">
Chris PeBenito 4be8dd
##	<summary>
Chris PeBenito 4be8dd
##	Role allowed access.
Chris PeBenito 4be8dd
##	</summary>
Chris PeBenito 4be8dd
## </param>
Chris PeBenito 4be8dd
## <param name="domain">
Chris PeBenito 4be8dd
##	<summary>
Chris PeBenito 4be8dd
##	User domain for the role.
Chris PeBenito 4be8dd
##	</summary>
Chris PeBenito 4be8dd
## </param>
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
interface(`seunshare_role',`
Chris PeBenito 4be8dd
	gen_require(`
Chris PeBenito 4be8dd
		type seunshare_t;
Chris PeBenito 4be8dd
	')
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
	role $2 types seunshare_t;
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
	seunshare_domtrans($1)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
	ps_process_pattern($2, seunshare_t)
Chris PeBenito 4be8dd
	allow $2 seunshare_t:process signal;
Chris PeBenito 4be8dd
')