Chris PeBenito 6a57b68
## <summary>Update database for mlocate</summary>
Chris PeBenito 6a57b68
Chris PeBenito 6a57b68
########################################
Chris PeBenito 6a57b68
## <summary>
Chris PeBenito 6a57b68
##	Create the locate log with append mode.
Chris PeBenito 6a57b68
## </summary>
Chris PeBenito 6a57b68
## <param name="domain">
Chris PeBenito 885b83e
##	<summary>
Chris PeBenito 6a57b68
##	Domain allowed access.
Chris PeBenito 885b83e
##	</summary>
Chris PeBenito 6a57b68
## </param>
Chris PeBenito 6a57b68
#
Chris PeBenito 6a57b68
interface(`slocate_create_append_log',`
Chris PeBenito 6a57b68
	gen_require(`
Chris PeBenito 76b519d
		type locate_log_t;
Chris PeBenito 6a57b68
	')
Chris PeBenito 6a57b68
Chris PeBenito 6a57b68
	logging_search_logs($1)
Chris PeBenito 6a57b68
	allow $1 locate_log_t:dir ra_dir_perms;
Chris PeBenito 6a57b68
	allow $1 locate_log_t:file { create append getattr };
Chris PeBenito 6a57b68
')