|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
6b19be |
policy_module(slocate,1.3.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type locate_t;
|
|
Chris PeBenito |
17de1b |
type locate_exec_t;
|
|
Chris PeBenito |
17de1b |
init_system_domain(locate_t,locate_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type locate_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(locate_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type locate_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(locate_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow locate_t self:capability { chown dac_read_search dac_override fowner fsetid };
|
|
Chris PeBenito |
17de1b |
allow locate_t self:process { execmem execheap execstack };
|
|
Chris PeBenito |
c0868a |
allow locate_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow locate_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(locate_t,locate_var_lib_t,locate_var_lib_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(locate_t,locate_var_lib_t,locate_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(locate_t)
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_search_sysctl(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_getattr_all_blk_files(locate_t)
|
|
Chris PeBenito |
17de1b |
dev_getattr_all_chr_files(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_all(locate_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_all_files(locate_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(locate_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(locate_t)
|
|
Chris PeBenito |
e2b84e |
fs_getattr_rpc_pipefs(locate_t)
|
|
Chris PeBenito |
6b19be |
fs_getattr_rpc_dirs(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(locate_t)
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(locate_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
d6d16b |
# On MLS machines will not be allowed to getattr Anything but SystemLow
|
|
Chris PeBenito |
d6d16b |
files_dontaudit_getattr_all_dirs(locate_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cron_system_entry(locate_t, locate_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|