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