selinux-refpolicy/policy/modules/apps/ethereal.if
2008-11-05 16:10:46 +00:00

97 lines
2.1 KiB
Plaintext

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