|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
a52492 |
policy_module(prelink,1.0.1)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# Declarations
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
attribute prelink_object;
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
type prelink_t;
|
|
Chris PeBenito |
2c2435 |
type prelink_exec_t;
|
|
Chris PeBenito |
2c2435 |
init_system_domain(prelink_t,prelink_exec_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
type prelink_cache_t;
|
|
Chris PeBenito |
2c2435 |
files_type(prelink_cache_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
type prelink_log_t;
|
|
Chris PeBenito |
2c2435 |
logging_log_file(prelink_log_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# Local policy
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow prelink_t self:capability { chown dac_override fowner fsetid };
|
|
Chris PeBenito |
2c2435 |
allow prelink_t self:process { execheap execmem execstack };
|
|
Chris PeBenito |
2c2435 |
allow prelink_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_cache_t:file manage_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_etc(prelink_t, prelink_cache_t, file)
|
|
Chris PeBenito |
a52492 |
files_filetrans_var_lib(prelink_t, prelink_cache_t, file)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_log_t:dir { setattr rw_dir_perms };
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_log_t:file { create ra_file_perms };
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_log_t:lnk_file read;
|
|
Chris PeBenito |
9d5949 |
logging_filetrans_log(prelink_t, prelink_log_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
# prelink misc objects that are not system
|
|
Chris PeBenito |
2c2435 |
# libraries or entrypoints
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_object:file { create_file_perms execute relabelto relabelfrom };
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
kernel_read_system_state(prelink_t)
|
|
Chris PeBenito |
2c2435 |
kernel_dontaudit_search_kernel_sysctl(prelink_t)
|
|
Chris PeBenito |
2c2435 |
kernel_dontaudit_search_sysctl(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
corecmd_manage_bin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
corecmd_relabel_bin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
corecmd_mmap_bin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
corecmd_manage_sbin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
corecmd_relabel_sbin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
corecmd_mmap_sbin_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
dev_read_urand(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
domain_manage_all_entry_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
domain_relabel_all_entry_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
domain_mmap_all_entry_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
files_list_all(prelink_t)
|
|
Chris PeBenito |
2c2435 |
files_getattr_all_files(prelink_t)
|
|
Chris PeBenito |
9e04f5 |
files_write_non_security_dirs(prelink_t)
|
|
Chris PeBenito |
a52492 |
files_read_etc_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
files_read_etc_runtime_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
fs_getattr_xattr_fs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
libs_use_ld_so(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_manage_ld_so(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_relabel_ld_so(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_use_shared_libs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_manage_shared_libs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_relabel_shared_libs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_use_lib(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_manage_lib_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_relabel_lib_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
miscfiles_read_localization(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
optional_policy(`cron',`
|
|
Chris PeBenito |
2c2435 |
cron_system_entry(prelink_t, prelink_exec_t)
|
|
Chris PeBenito |
2c2435 |
')
|