|
Chris PeBenito |
a9ef84 |
policy_module(prelink, 1.9.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 |
0bfccd |
init_system_domain(prelink_t, prelink_exec_t)
|
|
Chris PeBenito |
87eb5c |
domain_obj_id_change_exemption(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
type prelink_cache_t;
|
|
Chris PeBenito |
2c2435 |
files_type(prelink_cache_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
9fe1b5 |
type prelink_cron_system_t;
|
|
Chris PeBenito |
9fe1b5 |
type prelink_cron_system_exec_t;
|
|
Chris PeBenito |
9fe1b5 |
domain_type(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
domain_entry_file(prelink_cron_system_t, prelink_cron_system_exec_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
2c2435 |
type prelink_log_t;
|
|
Chris PeBenito |
2c2435 |
logging_log_file(prelink_log_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
6b19be |
type prelink_tmp_t;
|
|
Chris PeBenito |
6b19be |
files_tmp_file(prelink_tmp_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
9fe1b5 |
type prelink_tmpfs_t;
|
|
Chris PeBenito |
9fe1b5 |
files_tmpfs_file(prelink_tmpfs_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
adea58 |
type prelink_var_lib_t;
|
|
Chris PeBenito |
9fe1b5 |
files_type(prelink_var_lib_t)
|
|
Chris PeBenito |
adea58 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# Local policy
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
adea58 |
allow prelink_t self:capability { chown dac_override fowner fsetid sys_resource };
|
|
Chris PeBenito |
d9845a |
allow prelink_t self:process { execheap execmem execstack signal };
|
|
Chris PeBenito |
c0868a |
allow prelink_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow prelink_t prelink_cache_t:file manage_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_etc_filetrans(prelink_t, prelink_cache_t, file)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
c0868a |
allow prelink_t prelink_log_t:dir setattr;
|
|
Chris PeBenito |
0bfccd |
create_files_pattern(prelink_t, prelink_log_t, prelink_log_t)
|
|
Chris PeBenito |
0bfccd |
append_files_pattern(prelink_t, prelink_log_t, prelink_log_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(prelink_t, prelink_log_t, prelink_log_t)
|
|
Chris PeBenito |
1c1ac6 |
logging_log_filetrans(prelink_t, prelink_log_t, file)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
adea58 |
allow prelink_t prelink_tmp_t:file { manage_file_perms execute relabelfrom execmod };
|
|
Chris PeBenito |
6b19be |
files_tmp_filetrans(prelink_t, prelink_tmp_t, file)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_t prelink_tmpfs_t:file { manage_file_perms execute relabelfrom execmod };
|
|
Chris PeBenito |
9fe1b5 |
fs_tmpfs_filetrans(prelink_t, prelink_tmpfs_t, file)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
adea58 |
manage_dirs_pattern(prelink_t, prelink_var_lib_t, prelink_var_lib_t)
|
|
Chris PeBenito |
adea58 |
manage_files_pattern(prelink_t, prelink_var_lib_t, prelink_var_lib_t)
|
|
Chris PeBenito |
9fe1b5 |
relabel_files_pattern(prelink_t, prelink_var_lib_t, prelink_var_lib_t)
|
|
Chris PeBenito |
9fe1b5 |
files_var_lib_filetrans(prelink_t, prelink_var_lib_t, { dir file })
|
|
Chris PeBenito |
adea58 |
|
|
Chris PeBenito |
2c2435 |
# prelink misc objects that are not system
|
|
Chris PeBenito |
2c2435 |
# libraries or entrypoints
|
|
Chris PeBenito |
c0868a |
allow prelink_t prelink_object:file { manage_file_perms execute relabelto relabelfrom };
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
kernel_read_system_state(prelink_t)
|
|
Chris PeBenito |
adea58 |
kernel_read_kernel_sysctls(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
fb63d0 |
corecmd_manage_all_executables(prelink_t)
|
|
Chris PeBenito |
fb63d0 |
corecmd_relabel_all_executables(prelink_t)
|
|
Chris PeBenito |
fb63d0 |
corecmd_mmap_all_executables(prelink_t)
|
|
Chris PeBenito |
465510 |
corecmd_read_bin_symlinks(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
dev_read_urand(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 |
d6d16b |
files_dontaudit_read_all_symlinks(prelink_t)
|
|
Chris PeBenito |
adea58 |
files_manage_usr_files(prelink_t)
|
|
Chris PeBenito |
adea58 |
files_manage_var_files(prelink_t)
|
|
Chris PeBenito |
adea58 |
files_relabelfrom_usr_files(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
fs_getattr_xattr_fs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
a5e213 |
selinux_get_enforce_mode(prelink_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
b0d224 |
libs_exec_ld_so(prelink_t)
|
|
Chris PeBenito |
9fe1b5 |
libs_legacy_use_shared_libs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_manage_ld_so(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_relabel_ld_so(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_manage_shared_libs(prelink_t)
|
|
Chris PeBenito |
2c2435 |
libs_relabel_shared_libs(prelink_t)
|
|
Chris PeBenito |
8cf671 |
libs_delete_lib_symlinks(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
miscfiles_read_localization(prelink_t)
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(prelink_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
amanda_manage_lib(prelink_t)
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
2c2435 |
cron_system_entry(prelink_t, prelink_exec_t)
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
adea58 |
|
|
Chris PeBenito |
adea58 |
optional_policy(`
|
|
Chris PeBenito |
9fe1b5 |
rpm_manage_tmp_files(prelink_t)
|
|
Chris PeBenito |
9fe1b5 |
')
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
optional_policy(`
|
|
Chris PeBenito |
adea58 |
unconfined_domain(prelink_t)
|
|
Chris PeBenito |
adea58 |
')
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
########################################
|
|
Chris PeBenito |
9fe1b5 |
#
|
|
Chris PeBenito |
9fe1b5 |
# Prelink Cron system Policy
|
|
Chris PeBenito |
9fe1b5 |
#
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
optional_policy(`
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t self:capability setuid;
|
|
Chris PeBenito |
a9ef84 |
allow prelink_cron_system_t self:process { setsched setfscreate signal };
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t self:unix_dgram_socket { write bind create setopt };
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
read_files_pattern(prelink_cron_system_t, prelink_cache_t, prelink_cache_t)
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t prelink_cache_t:file unlink;
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
domtrans_pattern(prelink_cron_system_t, prelink_exec_t, prelink_t)
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t prelink_t:process noatsecure;
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
manage_files_pattern(prelink_cron_system_t, prelink_log_t, prelink_log_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
manage_files_pattern(prelink_cron_system_t, prelink_var_lib_t, prelink_var_lib_t)
|
|
Chris PeBenito |
9fe1b5 |
files_var_lib_filetrans(prelink_cron_system_t, prelink_var_lib_t, file)
|
|
Chris PeBenito |
9fe1b5 |
allow prelink_cron_system_t prelink_var_lib_t:file { relabelfrom relabelto };
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
kernel_read_system_state(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
corecmd_exec_bin(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
corecmd_exec_shell(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
a9ef84 |
files_dontaudit_search_all_mountpoints(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
files_read_etc_files(prelink_cron_system_t)
|
|
Chris PeBenito |
a9ef84 |
files_search_var_lib(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
init_exec(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
libs_exec_ld_so(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
logging_search_logs(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
miscfiles_read_localization(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
cron_system_entry(prelink_cron_system_t, prelink_cron_system_exec_t)
|
|
Chris PeBenito |
9fe1b5 |
|
|
Chris PeBenito |
9fe1b5 |
optional_policy(`
|
|
Chris PeBenito |
9fe1b5 |
rpm_read_db(prelink_cron_system_t)
|
|
Chris PeBenito |
9fe1b5 |
')
|
|
Chris PeBenito |
9fe1b5 |
')
|