selinux-refpolicy/policy/modules/apps/ethereal.if

97 lines
2.1 KiB
Plaintext
Raw Normal View History

2006-03-14 21:54:26 +00:00
## <summary>Ethereal packet capture tool.</summary>
2008-11-05 16:10:46 +00:00
########################################
2006-03-14 21:54:26 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for ethereal
2006-03-14 21:54:26 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
2006-03-14 21:54:26 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
2006-03-14 21:54:26 +00:00
## </summary>
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
2006-03-14 21:54:26 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
2006-03-14 21:54:26 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`ethereal_role',`
gen_require(`
2008-11-05 16:10:46 +00:00
type ethereal_t, ethereal_exec_t, ethereal_home_t;
2006-03-14 21:54:26 +00:00
')
2008-11-05 16:10:46 +00:00
role $1 types ethereal_t;
2006-03-14 21:54:26 +00:00
2008-11-05 16:10:46 +00:00
domain_auto_trans($2, ethereal_exec_t, ethereal_t)
allow ethereal_t $2:fd use;
allow ethereal_t $2:process sigchld;
2008-10-17 15:52:39 +00:00
2008-11-05 16:10:46 +00:00
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)
2006-03-14 21:54:26 +00:00
')
########################################
## <summary>
## Run ethereal in ethereal domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`ethereal_domtrans',`
2006-03-14 21:54:26 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type ethereal_t, ethereal_exec_t;
2006-03-14 21:54:26 +00:00
')
2008-11-05 16:10:46 +00:00
domtrans_pattern($1, ethereal_exec_t, ethereal_t)
2006-03-14 21:54:26 +00:00
')
########################################
## <summary>
## Run tethereal in the tethereal domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`ethereal_domtrans_tethereal',`
2006-03-14 21:54:26 +00:00
gen_require(`
type tethereal_t, tethereal_exec_t;
')
domtrans_pattern($1, tethereal_exec_t, tethereal_t)
2006-03-14 21:54:26 +00:00
')
########################################
## <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;
')