2005-11-25 19:09:08 +00:00
|
|
|
## <summary>X Windows Font Server </summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read a X font server named socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-25 19:09:08 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-25 19:09:08 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`xfs_read_sockets',`
|
2005-11-25 19:09:08 +00:00
|
|
|
gen_require(`
|
|
|
|
type xfs_tmp_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_tmp($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
read_sock_files_pattern($1,xfs_tmp_t,xfs_tmp_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
')
|
2006-01-30 22:51:35 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect to a X font server over
|
|
|
|
## a unix domain stream socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-30 22:51:35 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-30 22:51:35 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`xfs_stream_connect',`
|
|
|
|
gen_require(`
|
|
|
|
type xfs_tmp_t, xfs_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_tmp($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
stream_connect_pattern($1,xfs_tmp_t,xfs_tmp_t,xfs_t)
|
2006-01-30 22:51:35 +00:00
|
|
|
')
|
2006-05-19 14:02:24 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow the specified domain to execute xfs
|
|
|
|
## in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`xfs_exec',`
|
|
|
|
gen_require(`
|
|
|
|
type xfs_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
can_exec($1,xfs_exec_t)
|
|
|
|
')
|