2006-01-16 14:58:58 +00:00
|
|
|
## <summary>Update database for mlocate</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create the locate log with append mode.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-16 14:58:58 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-16 14:58:58 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`slocate_create_append_log',`
|
|
|
|
gen_require(`
|
2006-01-16 22:00:09 +00:00
|
|
|
type locate_log_t;
|
2006-01-16 14:58:58 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
logging_search_logs($1)
|
2008-07-23 21:38:39 +00:00
|
|
|
create_files_pattern($1, locate_log_t, locate_log_t)
|
|
|
|
append_files_pattern($1, locate_log_t, locate_log_t)
|
2006-01-16 14:58:58 +00:00
|
|
|
')
|
2007-02-16 23:01:42 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read locate lib files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`locate_read_lib_files',`
|
|
|
|
gen_require(`
|
|
|
|
type locate_var_lib_t;
|
|
|
|
')
|
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
read_files_pattern($1, locate_var_lib_t, locate_var_lib_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
allow $1 locate_var_lib_t:dir list_dir_perms;
|
|
|
|
files_search_var_lib($1)
|
|
|
|
')
|