2008-03-14 15:26:52 +00:00
|
|
|
## <summary>Wireshark packet capture tool.</summary>
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
############################################################
|
2008-03-14 15:26:52 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role access for wireshark
|
2008-03-14 15:26:52 +00:00
|
|
|
## </summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="role">
|
2008-03-14 15:26:52 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role allowed access
|
2008-03-14 15:26:52 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="domain">
|
2008-03-14 15:26:52 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## User domain for the role
|
2008-03-14 15:26:52 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`wireshark_role',`
|
2008-03-14 15:26:52 +00:00
|
|
|
gen_require(`
|
2008-11-05 16:10:46 +00:00
|
|
|
type wireshark_t, wireshark_exec_t;
|
|
|
|
type wireshark_home_t, wireshark_tmp_t;
|
|
|
|
type wireshark_tmpfs_t;
|
2008-03-14 15:26:52 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
role $1 types wireshark_t;
|
2008-03-14 15:26:52 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
domain_auto_trans($2, wireshark_exec_t, wireshark_t)
|
|
|
|
allow wireshark_t $2:fd use;
|
|
|
|
allow wireshark_t $2:process sigchld;
|
2008-10-17 15:52:39 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
manage_dirs_pattern($2, wireshark_home_t, wireshark_home_t)
|
|
|
|
manage_files_pattern($2, wireshark_home_t, wireshark_home_t)
|
|
|
|
manage_lnk_files_pattern($2, wireshark_home_t, wireshark_home_t)
|
|
|
|
relabel_dirs_pattern($2, wireshark_home_t, wireshark_home_t)
|
|
|
|
relabel_files_pattern($2, wireshark_home_t, wireshark_home_t)
|
|
|
|
relabel_lnk_files_pattern($2, wireshark_home_t, wireshark_home_t)
|
2008-03-14 15:26:52 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Run wireshark in wireshark domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`wireshark_domtrans',`
|
2008-03-14 15:26:52 +00:00
|
|
|
gen_require(`
|
2008-11-05 16:10:46 +00:00
|
|
|
type wireshark_t, wireshark_exec_t;
|
2008-03-14 15:26:52 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
domtrans_pattern($1, wireshark_exec_t, wireshark_t)
|
2008-03-14 15:26:52 +00:00
|
|
|
')
|