]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - policy/modules/apps/slocate.if
trunk: whitespace fixes
[people/stevee/selinux-policy.git] / policy / modules / apps / slocate.if
CommitLineData
6a57b68d
CP
1## <summary>Update database for mlocate</summary>
2
3########################################
4## <summary>
5## Create the locate log with append mode.
6## </summary>
7## <param name="domain">
885b83ec 8## <summary>
6a57b68d 9## Domain allowed access.
885b83ec 10## </summary>
6a57b68d
CP
11## </param>
12#
13interface(`slocate_create_append_log',`
14 gen_require(`
76b519df 15 type locate_log_t;
6a57b68d
CP
16 ')
17
18 logging_search_logs($1)
0bfccda4
CP
19 create_files_pattern($1, locate_log_t, locate_log_t)
20 append_files_pattern($1, locate_log_t, locate_log_t)
6a57b68d 21')
6b19be33
CP
22
23########################################
24## <summary>
25## Read locate lib files.
26## </summary>
27## <param name="domain">
28## <summary>
29## Domain allowed access.
30## </summary>
31## </param>
32#
33interface(`locate_read_lib_files',`
34 gen_require(`
35 type locate_var_lib_t;
36 ')
37
3f67f722 38 read_files_pattern($1, locate_var_lib_t, locate_var_lib_t)
6b19be33
CP
39 allow $1 locate_var_lib_t:dir list_dir_perms;
40 files_search_var_lib($1)
41')