Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/slocate.if

36 lines
747 B
Text
Raw Permalink Normal View History

## <summary>Update database for mlocate.</summary>
########################################
## <summary>
## Create the locate log with append mode.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`slocate_create_append_log',`
refpolicywarn(`$0($*) has been deprecated')
')
########################################
## <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;
')
files_search_var_lib($1)
read_files_pattern($1, locate_var_lib_t, locate_var_lib_t)
allow $1 locate_var_lib_t:dir list_dir_perms;
')