2005-10-10 18:11:46 +00:00
|
|
|
## <summary>Ethernet activity monitor.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Search arpwatch's data file directories.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`arpwatch_search_data',`
|
|
|
|
gen_require(`
|
|
|
|
type arpwatch_data_t;
|
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 arpwatch_data_t:dir search_dir_perms;
|
2005-10-10 18:11:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create arpwatch data files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`arpwatch_manage_data_files',`
|
|
|
|
gen_require(`
|
|
|
|
type arpwatch_data_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern($1, arpwatch_data_t, arpwatch_data_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write arpwatch temporary files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`arpwatch_rw_tmp_files',`
|
|
|
|
gen_require(`
|
|
|
|
type arpwatch_tmp_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 arpwatch_tmp_t:file rw_file_perms;
|
|
|
|
')
|
|
|
|
|
2005-11-08 22:00:30 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write arpwatch temporary files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-08 22:00:30 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-08 22:00:30 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`arpwatch_manage_tmp_files',`
|
|
|
|
gen_require(`
|
|
|
|
type arpwatch_tmp_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 arpwatch_tmp_t:file manage_file_perms;
|
|
|
|
')
|
|
|
|
|
2005-10-10 18:11:46 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to read and write
|
|
|
|
## arpwatch packet sockets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-10 18:11:46 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`arpwatch_dontaudit_rw_packet_sockets',`
|
2005-10-10 18:11:46 +00:00
|
|
|
gen_require(`
|
|
|
|
type arpwatch_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 arpwatch_t:packet_socket { read write };
|
|
|
|
')
|