Chris PeBenito 0834f9
## <summary>Ethereal packet capture tool.</summary>
Chris PeBenito 0834f9
Chris PeBenito 296273
########################################
Chris PeBenito 0834f9
## <summary>
Chris PeBenito 296273
##	Role access for ethereal
Chris PeBenito 0834f9
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 0834f9
#
Chris PeBenito 296273
interface(`ethereal_role',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 296273
		type ethereal_t, ethereal_exec_t, ethereal_home_t;
Chris PeBenito 0834f9
	')
Chris PeBenito 0834f9
Chris PeBenito 296273
	role $1 types ethereal_t;
Chris PeBenito 0834f9
Chris PeBenito 296273
	domain_auto_trans($2, ethereal_exec_t, ethereal_t)
Chris PeBenito 296273
	allow ethereal_t $2:fd use;
Chris PeBenito 296273
	allow ethereal_t $2:process sigchld;
Chris PeBenito 2a9837
Chris PeBenito 296273
	manage_dirs_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 296273
	manage_files_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 296273
	manage_lnk_files_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 296273
	relabel_dirs_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 296273
	relabel_files_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 296273
	relabel_lnk_files_pattern($2, ethereal_home_t, ethereal_home_t)
Chris PeBenito 0834f9
')
Chris PeBenito 0834f9
Chris PeBenito 0834f9
########################################
Chris PeBenito 0834f9
## <summary>
Chris PeBenito 0834f9
##	Run ethereal in ethereal domain.
Chris PeBenito 0834f9
## </summary>
Chris PeBenito 0834f9
## <param name="domain">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 0834f9
##	Domain allowed access.
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 0834f9
#
Chris PeBenito 296273
interface(`ethereal_domtrans',`
Chris PeBenito 0834f9
	gen_require(`
Chris PeBenito 296273
		type ethereal_t, ethereal_exec_t;
Chris PeBenito 0834f9
	')
Chris PeBenito 0834f9
Chris PeBenito 296273
	domtrans_pattern($1, ethereal_exec_t, ethereal_t)
Chris PeBenito 0834f9
')
Chris PeBenito 0834f9
Chris PeBenito 0834f9
########################################
Chris PeBenito 0834f9
## <summary>
Chris PeBenito 0834f9
##	Run tethereal in the tethereal domain.
Chris PeBenito 0834f9
## </summary>
Chris PeBenito 0834f9
## <param name="domain">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 0834f9
##	Domain allowed access.
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 0834f9
#
Chris PeBenito 296273
interface(`ethereal_domtrans_tethereal',`
Chris PeBenito 0834f9
	gen_require(`
Chris PeBenito 0834f9
		type tethereal_t, tethereal_exec_t;
Chris PeBenito 0834f9
	')
Chris PeBenito 0834f9
Chris PeBenito 0bfccd
	domtrans_pattern($1, tethereal_exec_t, tethereal_t)
Chris PeBenito 0834f9
')
Chris PeBenito 0834f9
Chris PeBenito 0834f9
########################################
Chris PeBenito 0834f9
## <summary>
Chris PeBenito 0834f9
##	Execute tethereal in the tethereal domain, and
Chris PeBenito 0834f9
##	allow the specified role the tethereal domain.
Chris PeBenito 0834f9
## </summary>
Chris PeBenito 0834f9
## <param name="domain">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 0834f9
##	Domain allowed access.
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 0834f9
## <param name="role">
Chris PeBenito 0834f9
##	<summary>
Chris PeBenito 0834f9
##	The role to be allowed the tethereal domain.
Chris PeBenito 0834f9
##	</summary>
Chris PeBenito 0834f9
## </param>
Chris PeBenito 0834f9
#
Chris PeBenito 0834f9
interface(`ethereal_run_tethereal',`
Chris PeBenito 0834f9
	gen_require(`
Chris PeBenito 0834f9
		type tethereal_t;
Chris PeBenito 0834f9
	')
Chris PeBenito 0834f9
Chris PeBenito 0834f9
	ethereal_domtrans_tethereal($1)
Chris PeBenito 0834f9
	role $2 types tethereal_t;
Chris PeBenito 0834f9
')