Chris PeBenito 3f4188
## <summary>X Windows Font Server </summary>
Chris PeBenito 3f4188
Chris PeBenito 3f4188
########################################
Chris PeBenito 3f4188
## <summary>
Chris PeBenito 3f4188
##	Read a X font server named socket.
Chris PeBenito 3f4188
## </summary>
Chris PeBenito 3f4188
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 3f4188
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 3f4188
## </param>
Chris PeBenito 3f4188
#
Chris PeBenito 1815ba
interface(`xfs_read_sockets',`
Chris PeBenito 3f4188
	gen_require(`
Chris PeBenito 3f4188
		type xfs_tmp_t;
Chris PeBenito 3f4188
	')
Chris PeBenito 3f4188
Chris PeBenito 3f4188
	files_search_tmp($1)
Chris PeBenito 3f4188
	allow $1 xfs_tmp_t:dir search;
Chris PeBenito 3f4188
	allow $1 xfs_tmp_t:sock_file { getattr read };
Chris PeBenito 3f4188
')
Chris PeBenito 0f5d13
Chris PeBenito 0f5d13
########################################
Chris PeBenito 0f5d13
## <summary>
Chris PeBenito 0f5d13
##	Connect to a X font server over
Chris PeBenito 0f5d13
##	a unix domain stream socket.
Chris PeBenito 0f5d13
## </summary>
Chris PeBenito 0f5d13
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 0f5d13
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 0f5d13
## </param>
Chris PeBenito 0f5d13
#
Chris PeBenito 0f5d13
interface(`xfs_stream_connect',`
Chris PeBenito 0f5d13
	gen_require(`
Chris PeBenito 0f5d13
		type xfs_tmp_t, xfs_t;
Chris PeBenito 0f5d13
	')
Chris PeBenito 0f5d13
Chris PeBenito 0f5d13
	files_search_tmp($1)
Chris PeBenito 0f5d13
	allow $1 xfs_tmp_t:dir search;
Chris PeBenito 0f5d13
	allow $1 xfs_tmp_t:sock_file write;
Chris PeBenito 0f5d13
	allow $1 xfs_t:unix_stream_socket connectto;
Chris PeBenito 0f5d13
')
Chris PeBenito 87eb5c
Chris PeBenito 87eb5c
Chris PeBenito 87eb5c
########################################
Chris PeBenito 87eb5c
## <summary>
Chris PeBenito 87eb5c
##	Allow the specified domain to execute xfs
Chris PeBenito 87eb5c
##	in the caller domain.
Chris PeBenito 87eb5c
## </summary>
Chris PeBenito 87eb5c
## <param name="domain">
Chris PeBenito 87eb5c
##	<summary>
Chris PeBenito 87eb5c
##	Domain allowed access.
Chris PeBenito 87eb5c
##	</summary>
Chris PeBenito 87eb5c
## </param>
Chris PeBenito 87eb5c
#
Chris PeBenito 87eb5c
interface(`xfs_exec',`
Chris PeBenito 87eb5c
	gen_require(`
Chris PeBenito 87eb5c
		type xfs_exec_t;
Chris PeBenito 87eb5c
	')
Chris PeBenito 87eb5c
Chris PeBenito 87eb5c
	can_exec($1,xfs_exec_t)
Chris PeBenito 87eb5c
')