2006-01-11 23:20:28 +00:00
|
|
|
|
2007-10-02 17:15:07 +00:00
|
|
|
policy_module(prelink,1.4.1)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
|
|
|
|
attribute prelink_object;
|
|
|
|
|
|
|
|
type prelink_t;
|
|
|
|
type prelink_exec_t;
|
|
|
|
init_system_domain(prelink_t,prelink_exec_t)
|
2006-05-19 14:02:24 +00:00
|
|
|
domain_obj_id_change_exemption(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
type prelink_cache_t;
|
|
|
|
files_type(prelink_cache_t)
|
|
|
|
|
|
|
|
type prelink_log_t;
|
|
|
|
logging_log_file(prelink_log_t)
|
|
|
|
|
2007-02-16 23:01:42 +00:00
|
|
|
type prelink_tmp_t;
|
|
|
|
files_tmp_file(prelink_tmp_t)
|
|
|
|
|
2006-01-11 23:20:28 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow prelink_t self:capability { chown dac_override fowner fsetid };
|
2006-10-31 21:01:48 +00:00
|
|
|
allow prelink_t self:process { execheap execmem execstack signal };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow prelink_t self:fifo_file rw_fifo_file_perms;
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
allow prelink_t prelink_cache_t:file manage_file_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_etc_filetrans(prelink_t, prelink_cache_t, file)
|
|
|
|
files_var_lib_filetrans(prelink_t, prelink_cache_t, file)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow prelink_t prelink_log_t:dir setattr;
|
|
|
|
create_files_pattern(prelink_t,prelink_log_t,prelink_log_t)
|
|
|
|
append_files_pattern(prelink_t,prelink_log_t,prelink_log_t)
|
|
|
|
read_lnk_files_pattern(prelink_t,prelink_log_t,prelink_log_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
logging_log_filetrans(prelink_t, prelink_log_t, file)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
2007-02-23 21:20:46 +00:00
|
|
|
allow prelink_t prelink_tmp_t:file { manage_file_perms execute relabelfrom };
|
2007-02-16 23:01:42 +00:00
|
|
|
files_tmp_filetrans(prelink_t, prelink_tmp_t, file)
|
|
|
|
fs_tmpfs_filetrans(prelink_t, prelink_tmp_t, file)
|
|
|
|
|
2006-01-11 23:20:28 +00:00
|
|
|
# prelink misc objects that are not system
|
|
|
|
# libraries or entrypoints
|
2006-12-12 20:08:08 +00:00
|
|
|
allow prelink_t prelink_object:file { manage_file_perms execute relabelto relabelfrom };
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(prelink_t)
|
|
|
|
kernel_dontaudit_search_kernel_sysctl(prelink_t)
|
|
|
|
kernel_dontaudit_search_sysctl(prelink_t)
|
|
|
|
|
2006-04-19 21:43:02 +00:00
|
|
|
corecmd_manage_all_executables(prelink_t)
|
|
|
|
corecmd_relabel_all_executables(prelink_t)
|
|
|
|
corecmd_mmap_all_executables(prelink_t)
|
2006-07-28 15:13:58 +00:00
|
|
|
corecmd_read_bin_symlinks(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
dev_read_urand(prelink_t)
|
|
|
|
|
|
|
|
files_list_all(prelink_t)
|
|
|
|
files_getattr_all_files(prelink_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_write_non_security_dirs(prelink_t)
|
2006-01-25 15:53:35 +00:00
|
|
|
files_read_etc_files(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
files_read_etc_runtime_files(prelink_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
files_dontaudit_read_all_symlinks(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
fs_getattr_xattr_fs(prelink_t)
|
|
|
|
|
2006-08-29 02:41:00 +00:00
|
|
|
selinux_get_enforce_mode(prelink_t)
|
|
|
|
|
2006-01-11 23:20:28 +00:00
|
|
|
libs_use_ld_so(prelink_t)
|
2006-02-13 22:05:08 +00:00
|
|
|
libs_exec_ld_so(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
libs_manage_ld_so(prelink_t)
|
|
|
|
libs_relabel_ld_so(prelink_t)
|
|
|
|
libs_use_shared_libs(prelink_t)
|
|
|
|
libs_manage_shared_libs(prelink_t)
|
|
|
|
libs_relabel_shared_libs(prelink_t)
|
2006-02-16 19:32:13 +00:00
|
|
|
libs_delete_lib_symlinks(prelink_t)
|
2006-01-11 23:20:28 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(prelink_t)
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
optional_policy(`
|
|
|
|
amanda_manage_lib(prelink_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-11 23:20:28 +00:00
|
|
|
cron_system_entry(prelink_t, prelink_exec_t)
|
|
|
|
')
|