selinux-policy/refpolicy/policy/modules/admin/prelink.te

80 lines
2.0 KiB
Plaintext
Raw Normal View History

2006-01-11 23:20:28 +00:00
policy_module(prelink,1.0.0)
########################################
#
# Declarations
attribute prelink_object;
type prelink_t;
type prelink_exec_t;
init_system_domain(prelink_t,prelink_exec_t)
type prelink_cache_t;
files_type(prelink_cache_t)
type prelink_log_t;
logging_log_file(prelink_log_t)
########################################
#
# Local policy
#
allow prelink_t self:capability { chown dac_override fowner fsetid };
allow prelink_t self:process { execheap execmem execstack };
allow prelink_t self:fifo_file rw_file_perms;
allow prelink_t prelink_cache_t:file manage_file_perms;
files_create_etc_config(prelink_t, prelink_cache_t, file)
allow prelink_t prelink_log_t:dir { setattr rw_dir_perms };
allow prelink_t prelink_log_t:file { create ra_file_perms };
allow prelink_t prelink_log_t:lnk_file read;
logging_create_log(prelink_t, prelink_log_t)
# prelink misc objects that are not system
# libraries or entrypoints
allow prelink_t prelink_object:file { create_file_perms execute relabelto relabelfrom };
kernel_read_system_state(prelink_t)
kernel_dontaudit_search_kernel_sysctl(prelink_t)
kernel_dontaudit_search_sysctl(prelink_t)
corecmd_manage_bin_files(prelink_t)
corecmd_relabel_bin_files(prelink_t)
corecmd_mmap_bin_files(prelink_t)
corecmd_manage_sbin_files(prelink_t)
corecmd_relabel_sbin_files(prelink_t)
corecmd_mmap_sbin_files(prelink_t)
dev_read_urand(prelink_t)
domain_manage_all_entry_files(prelink_t)
domain_relabel_all_entry_files(prelink_t)
domain_mmap_all_entry_files(prelink_t)
files_list_all(prelink_t)
files_getattr_all_files(prelink_t)
files_write_non_security_dir(prelink_t)
files_read_etc_runtime_files(prelink_t)
fs_getattr_xattr_fs(prelink_t)
libs_use_ld_so(prelink_t)
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)
libs_use_lib(prelink_t)
libs_manage_lib_files(prelink_t)
libs_relabel_lib_files(prelink_t)
miscfiles_read_localization(prelink_t)
optional_policy(`cron',`
cron_system_entry(prelink_t, prelink_exec_t)
')