Chris PeBenito 17de1b
## <summary>Update database for mlocate</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create the locate log with append mode.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`slocate_create_append_log',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type locate_log_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 0bfccd
	create_files_pattern($1, locate_log_t, locate_log_t)
Chris PeBenito 0bfccd
	append_files_pattern($1, locate_log_t, locate_log_t)
Chris PeBenito 17de1b
')
Chris PeBenito 6b19be
Chris PeBenito 6b19be
########################################
Chris PeBenito 6b19be
## <summary>
Chris PeBenito 6b19be
##	Read locate lib files.
Chris PeBenito 6b19be
## </summary>
Chris PeBenito 6b19be
## <param name="domain">
Chris PeBenito 6b19be
##	<summary>
Chris PeBenito 6b19be
##	Domain allowed access.
Chris PeBenito 6b19be
##	</summary>
Chris PeBenito 6b19be
## </param>
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
interface(`locate_read_lib_files',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 6b19be
		type locate_var_lib_t;
Chris PeBenito 6b19be
	')
Chris PeBenito 6b19be
Chris PeBenito 3f67f7
	read_files_pattern($1, locate_var_lib_t, locate_var_lib_t)
Chris PeBenito 6b19be
	allow $1 locate_var_lib_t:dir list_dir_perms;
Chris PeBenito 6b19be
	files_search_var_lib($1)
Chris PeBenito 6b19be
')