Chris PeBenito 4483ee
## <summary>Ethernet activity monitor.</summary>
Chris PeBenito 4483ee
Chris PeBenito 4483ee
########################################
Chris PeBenito 4483ee
## <summary>
Chris PeBenito 4483ee
##	Search arpwatch's data file directories.
Chris PeBenito 4483ee
## </summary>
Chris PeBenito 4483ee
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 4483ee
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 4483ee
## </param>
Chris PeBenito 4483ee
#
Chris PeBenito 4483ee
interface(`arpwatch_search_data',`
Chris PeBenito 4483ee
	gen_require(`
Chris PeBenito 4483ee
		type arpwatch_data_t;
Chris PeBenito 4483ee
	')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
	allow $1 arpwatch_data_t:dir search;
Chris PeBenito 4483ee
')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
########################################
Chris PeBenito 4483ee
## <summary>
Chris PeBenito 4483ee
##	Create arpwatch data files.
Chris PeBenito 4483ee
## </summary>
Chris PeBenito 4483ee
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 4483ee
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 4483ee
## </param>
Chris PeBenito 4483ee
#
Chris PeBenito 4483ee
interface(`arpwatch_manage_data_files',`
Chris PeBenito 4483ee
	gen_require(`
Chris PeBenito 4483ee
		type arpwatch_data_t;
Chris PeBenito 4483ee
	')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
	allow $1 arpwatch_data_t:dir rw_dir_perms;
Chris PeBenito 4483ee
	allow $1 arpwatch_data_t:file create_file_perms;
Chris PeBenito 4483ee
')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
########################################
Chris PeBenito 4483ee
## <summary>
Chris PeBenito 4483ee
##	Read and write arpwatch temporary files.
Chris PeBenito 4483ee
## </summary>
Chris PeBenito 4483ee
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 4483ee
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 4483ee
## </param>
Chris PeBenito 4483ee
#
Chris PeBenito 4483ee
interface(`arpwatch_rw_tmp_files',`
Chris PeBenito 4483ee
	gen_require(`
Chris PeBenito 4483ee
		type arpwatch_tmp_t;
Chris PeBenito 4483ee
	')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
	allow $1 arpwatch_tmp_t:file rw_file_perms;
Chris PeBenito 4483ee
')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
########################################
Chris PeBenito 4483ee
## <summary>
Chris PeBenito 725926
##	Read and write arpwatch temporary files.
Chris PeBenito 725926
## </summary>
Chris PeBenito 725926
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 725926
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 725926
## </param>
Chris PeBenito 725926
#
Chris PeBenito 725926
interface(`arpwatch_manage_tmp_files',`
Chris PeBenito 725926
	gen_require(`
Chris PeBenito 725926
		type arpwatch_tmp_t;
Chris PeBenito 725926
	')
Chris PeBenito 725926
Chris PeBenito 725926
	allow $1 arpwatch_tmp_t:file manage_file_perms;
Chris PeBenito 725926
')
Chris PeBenito 725926
Chris PeBenito 725926
########################################
Chris PeBenito 725926
## <summary>
Chris PeBenito 4483ee
##	Do not audit attempts to read and write
Chris PeBenito 4483ee
##	arpwatch packet sockets.
Chris PeBenito 4483ee
## </summary>
Chris PeBenito 4483ee
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 4483ee
##	Domain to not audit.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 4483ee
## </param>
Chris PeBenito 4483ee
#
Chris PeBenito 1815ba
interface(`arpwatch_dontaudit_rw_packet_sockets',`
Chris PeBenito 4483ee
	gen_require(`
Chris PeBenito 4483ee
		type arpwatch_t;
Chris PeBenito 4483ee
	')
Chris PeBenito 4483ee
Chris PeBenito 4483ee
	dontaudit $1 arpwatch_t:packet_socket { read write };
Chris PeBenito 4483ee
')