Chris PeBenito 992aba
Chris PeBenito 992aba
policy_module(rpm,1.0)
Chris PeBenito 992aba
Chris PeBenito 992aba
########################################
Chris PeBenito 992aba
#
Chris PeBenito 992aba
# Declarations
Chris PeBenito 992aba
#
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_t; #, admin, privmem, priv_system_role;
Chris PeBenito 992aba
type rpm_exec_t;
Chris PeBenito 992aba
init_make_system_domain(rpm_t,rpm_exec_t)
Chris PeBenito 992aba
kernel_make_object_identity_change_constraint_exception(rpm_t)
Chris PeBenito 992aba
domain_make_file_descriptors_widely_inheritable(rpm_t)
Chris PeBenito 992aba
role system_r types rpm_t;
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_file_t;
Chris PeBenito 992aba
files_make_file(rpm_file_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_tmp_t;
Chris PeBenito 992aba
files_make_temporary_file(rpm_tmp_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_tmpfs_t;
Chris PeBenito 992aba
files_make_tmpfs_file(rpm_tmpfs_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_log_t;
Chris PeBenito 992aba
logging_make_log_file(rpm_log_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_var_lib_t;
Chris PeBenito 992aba
files_make_file(rpm_var_lib_t)
Chris PeBenito 992aba
typealias rpm_var_lib_t alias var_lib_rpm_t;
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_script_t; #, admin, privmem, priv_system_role;
Chris PeBenito 992aba
type rpm_script_exec_t;
Chris PeBenito 992aba
kernel_make_object_identity_change_constraint_exception(rpm_script_t)
Chris PeBenito 992aba
corecommands_make_shell_entrypoint(rpm_script_t)
Chris PeBenito 992aba
domain_make_domain(rpm_script_t)
Chris PeBenito 992aba
domain_make_entrypoint_file(rpm_t,rpm_script_t)
Chris PeBenito 992aba
domain_make_file_descriptors_widely_inheritable(rpm_script_t)
Chris PeBenito 992aba
role system_r types rpm_script_t;
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_script_tmp_t;
Chris PeBenito 992aba
files_make_temporary_file(rpm_script_tmp_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpm_script_tmpfs_t;
Chris PeBenito 992aba
files_make_tmpfs_file(rpm_script_tmpfs_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
type rpmbuild_t;
Chris PeBenito 16e9b0
domain_make_domain(rpmbuild_t)
Chris PeBenito 16e9b0
Chris PeBenito 992aba
type rpmbuild_exec_t;
Chris PeBenito 16e9b0
domain_make_entrypoint_file(rpmbuild_t,rpmbuild_exec_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
########################################
Chris PeBenito 992aba
#
Chris PeBenito 992aba
# rpm Local policy
Chris PeBenito 992aba
#
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_t self:capability { chown dac_override fowner fsetid setgid setuid net_bind_service sys_chroot sys_tty_config mknod };
Chris PeBenito 992aba
allow rpm_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem dyntransition };
Chris PeBenito 992aba
allow rpm_t self:process { getattr setexec setfscreate setrlimit };
Chris PeBenito 992aba
allow rpm_t self:fd use;
Chris PeBenito dc67f7
allow rpm_t self:fifo_file rw_file_perms;
Chris PeBenito dc67f7
allow rpm_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito dc67f7
allow rpm_t self:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 992aba
allow rpm_t self:unix_dgram_socket sendto;
Chris PeBenito 992aba
allow rpm_t self:unix_stream_socket connectto;
Chris PeBenito 992aba
allow rpm_t self:udp_socket { connect };
Chris PeBenito dc67f7
allow rpm_t self:udp_socket create_socket_perms;
Chris PeBenito dc67f7
allow rpm_t self:tcp_socket rw_stream_socket_perms;
Chris PeBenito dc67f7
allow rpm_t self:shm create_shm_perms;
Chris PeBenito dc67f7
allow rpm_t self:sem create_sem_perms;
Chris PeBenito dc67f7
allow rpm_t self:msgq create_msgq_perms;
Chris PeBenito 992aba
allow rpm_t self:msg { send receive };
Chris PeBenito 992aba
allow rpm_t self:dir search;
Chris PeBenito dc67f7
allow rpm_t self:file rw_file_perms;;
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_t rpm_log_t:file create_file_perms;
Chris PeBenito 992aba
logging_create_private_log(rpm_t,rpm_log_t)
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_t rpm_tmp_t:dir create_dir_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_tmp_t:file create_file_perms;
Chris PeBenito 992aba
files_create_private_tmp_data(rpm_t, rpm_tmp_t, { file dir })
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_t rpm_tmpfs_t:dir create_dir_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_tmpfs_t:file create_file_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_tmpfs_t:lnk_file create_file_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_tmpfs_t:sock_file create_file_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_tmpfs_t:fifo_file create_file_perms;
Chris PeBenito 763c44
fs_create_private_tmpfs_data(rpm_t,rpm_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
Chris PeBenito 992aba
Chris PeBenito 992aba
# Access /var/lib/rpm files
Chris PeBenito dc67f7
allow rpm_t rpm_var_lib_t:file create_file_perms;
Chris PeBenito dc67f7
allow rpm_t rpm_var_lib_t:dir rw_dir_perms;
Chris PeBenito 992aba
#files_create_private_libraries(rpm_t,rpm_var_lib_t,dir)
Chris PeBenito 992aba
Chris PeBenito 992aba
kernel_read_system_state(rpm_t)
Chris PeBenito 992aba
kernel_read_kernel_sysctl(rpm_t)
Chris PeBenito 992aba
kernel_get_selinuxfs_mount_point(rpm_t)
Chris PeBenito 992aba
kernel_validate_selinux_context(rpm_t)
Chris PeBenito 992aba
kernel_compute_selinux_access_vector(rpm_t)
Chris PeBenito 992aba
kernel_compute_selinux_create_context(rpm_t)
Chris PeBenito 992aba
kernel_compute_selinux_relabel_context(rpm_t)
Chris PeBenito 992aba
kernel_compute_selinux_reachable_user_contexts(rpm_t)
Chris PeBenito 992aba
Chris PeBenito d11566
corenetwork_sendrecv_tcp_on_all_interfaces(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_raw_on_all_interfaces(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_udp_on_all_interfaces(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_tcp_on_all_nodes(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_raw_on_all_nodes(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_udp_on_all_nodes(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_tcp_on_all_ports(rpm_t)
Chris PeBenito d11566
corenetwork_sendrecv_udp_on_all_ports(rpm_t)
Chris PeBenito 992aba
corenetwork_bind_tcp_on_all_nodes(rpm_t)
Chris PeBenito 992aba
corenetwork_bind_udp_on_all_nodes(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
devices_get_pseudorandom_data(rpm_t)
Chris PeBenito 992aba
#devices_manage_all_device_types(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 763c44
#fs_manage_nfs_dir(rpm_t)
Chris PeBenito 763c44
#fs_manage_nfs_files(rpm_t)
Chris PeBenito 763c44
fs_get_all_fs_attributes(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
storage_raw_write_fixed_disk(rpm_t)
Chris PeBenito 992aba
# for installing kernel packages
Chris PeBenito 992aba
storage_raw_read_fixed_disk(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
terminal_list_pseudoterminals(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
authlogin_ignore_read_shadow_passwords(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
corecommands_execute_general_programs(rpm_t)
Chris PeBenito 992aba
corecommands_execute_system_programs(rpm_t)
Chris PeBenito 992aba
corecommands_shell_transition(rpm_t,rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
domain_execute_all_entrypoint_programs(rpm_t)
Chris PeBenito 992aba
domain_read_all_domains_process_state(rpm_t)
Chris PeBenito 992aba
domain_use_widely_inheritable_file_descriptors(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
files_execute_system_config_script(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
init_script_transition(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
libraries_use_dynamic_loader(rpm_t)
Chris PeBenito 992aba
libraries_use_shared_libraries(rpm_t)
Chris PeBenito 992aba
libraries_execute_dynamic_loader(rpm_t)
Chris PeBenito 992aba
libraries_execute_library_scripts(rpm_t)
Chris PeBenito 992aba
libraries_ldconfig_transition(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
logging_send_system_log_message(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
# allow compiling and loading new policy
Chris PeBenito 992aba
selinux_manage_source_policy(rpm_t)
Chris PeBenito 992aba
selinux_manage_binary_policy(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
sysnetwork_read_network_config(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
userdomain_use_all_unprivileged_users_file_descriptors(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
#cron_transition_from(rpm,rpm_exec_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
ifdef(`TODO',`
Chris PeBenito 992aba
Chris PeBenito 992aba
type_transition rpm_t tmpfs_t:{ dir file lnk_file sock_file fifo_file } rpm_tmpfs_t;
Chris PeBenito 992aba
Chris PeBenito 992aba
dontaudit rpm_t domain:process ptrace;
Chris PeBenito 992aba
Chris PeBenito 992aba
# read/write/create any files in the system
Chris PeBenito 992aba
allow rpm_t { file_type -shadow_t }:{ file lnk_file dir fifo_file sock_file } { relabelfrom relabelto };
Chris PeBenito dc67f7
allow rpm_t { file_type - shadow_t }:dir create_dir_perms;
Chris PeBenito dc67f7
allow rpm_t { file_type - shadow_t }:{ file lnk_file fifo_file sock_file } create_file_perms;
Chris PeBenito 992aba
dontaudit rpm_t domain:{ socket unix_dgram_socket udp_socket unix_stream_socket tcp_socket fifo_file rawip_socket packet_socket } getattr;
Chris PeBenito 992aba
allow rpm_t ttyfile:chr_file unlink;
Chris PeBenito 992aba
Chris PeBenito 992aba
# needs rw permission to the directory for an rpm package that includes a mount
Chris PeBenito 992aba
# point
Chris PeBenito 992aba
allow rpm_t fs_type:dir { setattr rw_dir_perms };
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_t mount_t:tcp_socket write;
Chris PeBenito dc67f7
allow rpm_t nfs_t:lnk_file create_file_perms;
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_t sysfs_t:dir r_dir_perms;
Chris PeBenito dc67f7
allow rpm_t usbdevfs_t:dir r_dir_perms;
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_t rpc_pipefs_t:dir search;
Chris PeBenito 992aba
Chris PeBenito 992aba
can_ypbind(rpm_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`gnome-pty-helper.te', `
Chris PeBenito 992aba
allow rpm_t sysadm_gph_t:fd use;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`automount.te', `
Chris PeBenito 992aba
allow rpm_t autofs_t:dir { search getattr };
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`mount.te', `
Chris PeBenito 992aba
allow rpm_t mount_t:udp_socket rw_socket_perms;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
# for kernel package installation
Chris PeBenito 992aba
optional_policy(`mount.te', `
Chris PeBenito 992aba
allow mount_t rpm_t:fifo_file rw_file_perms;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
# Commonly used from postinst scripts
Chris PeBenito 992aba
optional_policy(`consoletype.te', `
Chris PeBenito 992aba
allow consoletype_t rpm_t:fifo_file r_file_perms;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
optional_policy(`crond.te', `
Chris PeBenito 992aba
allow crond_t rpm_t:fifo_file r_file_perms;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
') dnl endif TODO
Chris PeBenito 992aba
Chris PeBenito 992aba
########################################
Chris PeBenito 992aba
#
Chris PeBenito 992aba
# rpm-script Local policy
Chris PeBenito 992aba
#
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_script_t self:capability { chown dac_override dac_read_search fowner fsetid setgid setuid ipc_lock sys_chroot sys_nice mknod kill };
Chris PeBenito 992aba
allow rpm_script_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem dyntransition };
Chris PeBenito 992aba
allow rpm_script_t self:fd use;
Chris PeBenito dc67f7
allow rpm_script_t self:fifo_file rw_file_perms;
Chris PeBenito dc67f7
allow rpm_script_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito dc67f7
allow rpm_script_t self:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 992aba
allow rpm_script_t self:unix_dgram_socket sendto;
Chris PeBenito 992aba
allow rpm_script_t self:unix_stream_socket connectto;
Chris PeBenito dc67f7
allow rpm_script_t self:shm create_shm_perms;
Chris PeBenito dc67f7
allow rpm_script_t self:sem create_sem_perms;
Chris PeBenito dc67f7
allow rpm_script_t self:msgq create_msgq_perms;
Chris PeBenito 992aba
allow rpm_script_t self:msg { send receive };
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_script_t rpm_tmp_t:file r_file_perms;
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_script_t rpm_script_tmp_t:dir mounton;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmp_t:dir create_dir_perms;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmp_t:file create_file_perms;
Chris PeBenito 992aba
files_create_private_tmp_data(rpm_script_t, rpm_script_tmp_t, { file dir })
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmpfs_t:dir rw_dir_perms;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmpfs_t:file create_file_perms;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmpfs_t:lnk_file create_file_perms;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmpfs_t:sock_file create_file_perms;
Chris PeBenito dc67f7
allow rpm_script_t rpm_script_tmpfs_t:fifo_file create_file_perms;
Chris PeBenito 763c44
fs_create_private_tmpfs_data(rpm_script_t,rpm_script_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
Chris PeBenito 992aba
Chris PeBenito 992aba
kernel_read_kernel_sysctl(rpm_script_t)
Chris PeBenito 992aba
kernel_get_selinuxfs_mount_point(rpm_script_t)
Chris PeBenito 992aba
kernel_validate_selinux_context(rpm_script_t)
Chris PeBenito 992aba
kernel_compute_selinux_access_vector(rpm_script_t)
Chris PeBenito 992aba
kernel_compute_selinux_create_context(rpm_script_t)
Chris PeBenito 992aba
kernel_compute_selinux_relabel_context(rpm_script_t)
Chris PeBenito 992aba
kernel_compute_selinux_reachable_user_contexts(rpm_script_t)
Chris PeBenito 992aba
kernel_read_system_state(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 32e53a
# ideally we would not need this
Chris PeBenito 32e53a
devices_manage_generic_block_devices(rpm_script_t)
Chris PeBenito 32e53a
devices_manage_generic_character_devices(rpm_script_t)
Chris PeBenito 32e53a
devices_manage_all_block_devices(rpm_script_t)
Chris PeBenito 32e53a
devices_manage_all_character_devices(rpm_script_t)
Chris PeBenito 32e53a
Chris PeBenito 763c44
fs_manage_nfs_files(rpm_script_t)
Chris PeBenito 763c44
fs_get_nfs_fs_attributes(rpm_script_t)
Chris PeBenito 992aba
# why is this not using mount?
Chris PeBenito 763c44
fs_get_persistent_fs_attributes(rpm_script_t)
Chris PeBenito 763c44
fs_mount_persistent_fs(rpm_script_t)
Chris PeBenito 763c44
fs_unmount_persistent_fs(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
storage_raw_read_fixed_disk(rpm_script_t)
Chris PeBenito 992aba
storage_raw_write_fixed_disk(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
terminal_get_general_physical_terminal_attributes(rpm_script_t)
Chris PeBenito 992aba
terminal_list_pseudoterminals(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
authlogin_ignore_get_shadow_passwords_attributes(rpm_script_t)
Chris PeBenito efd8ed
# ideally we would not need this
Chris PeBenito efd8ed
authlogin_manage_all_files_except_shadow(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
corecommands_execute_general_programs(rpm_script_t)
Chris PeBenito 992aba
corecommands_execute_system_programs(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 32e53a
domain_read_all_domains_process_state(rpm_script_t)
Chris PeBenito 992aba
domain_use_widely_inheritable_file_descriptors(rpm_script_t)
Chris PeBenito 992aba
domain_execute_all_entrypoint_programs(rpm_script_t)
Chris PeBenito 992aba
domain_signal_all_domains(rpm_script_t)
Chris PeBenito 992aba
domain_signull_all_domains(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
files_execute_system_config_script(rpm_script_t)
Chris PeBenito 992aba
files_read_runtime_system_config(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
init_script_transition(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
libraries_use_dynamic_loader(rpm_script_t)
Chris PeBenito 992aba
libraries_use_shared_libraries(rpm_script_t)
Chris PeBenito 992aba
libraries_execute_dynamic_loader(rpm_script_t)
Chris PeBenito 992aba
libraries_execute_library_scripts(rpm_script_t)
Chris PeBenito 992aba
libraries_ldconfig_transition(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
logging_send_system_log_message(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
miscfiles_read_localization(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
modutils_depmod_transition(rpm_script_t)
Chris PeBenito 992aba
modutils_insmod_transition(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
selinux_load_policy_transition(rpm_script_t)
Chris PeBenito 992aba
selinux_restorecon_transition(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
userdomain_use_all_users_file_descriptors(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`bootloader.te', `
Chris PeBenito 992aba
bootloader_transition(rpm_script_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
ifdef(`TODO',`
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_script_t sysfs_t:dir r_dir_perms;
Chris PeBenito 992aba
Chris PeBenito dc67f7
can_exec(rpm_script_t,usr_t)
Chris PeBenito dc67f7
Chris PeBenito 992aba
Chris PeBenito 992aba
allow rpm_script_t autofs_t:dir { search getattr };
Chris PeBenito 992aba
Chris PeBenito 992aba
can_ypbind(rpm_script_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`automount.te', `
Chris PeBenito 992aba
allow rpm_script_t autofs_t:dir { search getattr };
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`lpd.te', `
Chris PeBenito dc67f7
can_exec(rpm_script_t,printconf_t)
Chris PeBenito dc67f7
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`ssh.te', `
Chris PeBenito 992aba
allow sshd_t rpm_script_t:fd use;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
') dnl end TODO
Chris PeBenito 992aba
Chris PeBenito 992aba
########################################
Chris PeBenito 992aba
#
Chris PeBenito 992aba
# rpm-build Local policy
Chris PeBenito 992aba
#
Chris PeBenito 992aba
Chris PeBenito 16e9b0
# cjp: this looks like dead policy.  nothing
Chris PeBenito 16e9b0
# can transition to this domain, nor can it
Chris PeBenito 16e9b0
# really do anything useful.
Chris PeBenito 16e9b0
Chris PeBenito 992aba
kernel_get_selinuxfs_mount_point(rpmbuild_t)
Chris PeBenito 992aba
kernel_validate_selinux_context(rpmbuild_t)
Chris PeBenito 992aba
kernel_compute_selinux_access_vector(rpmbuild_t)
Chris PeBenito 992aba
kernel_compute_selinux_create_context(rpmbuild_t)
Chris PeBenito 992aba
kernel_compute_selinux_relabel_context(rpmbuild_t)
Chris PeBenito 992aba
kernel_compute_selinux_reachable_user_contexts(rpmbuild_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
selinux_read_source_policy(rpmbuild_t)
Chris PeBenito 992aba
Chris PeBenito 992aba
ifdef(`TODO',`
Chris PeBenito 992aba
Chris PeBenito 992aba
allow userdomain var_lib_t:dir { getattr search };
Chris PeBenito 992aba
Chris PeBenito dc67f7
allow { insmod_t depmod_t } rpm_t:fifo_file rw_file_perms;
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`cups.te', `
Chris PeBenito dc67f7
allow cupsd_t rpm_var_lib_t:dir r_dir_perms;
Chris PeBenito dc67f7
allow cupsd_t rpm_var_lib_t:file r_file_perms;
Chris PeBenito dc67f7
allow cupsd_t rpb_var_lib_t:lnk_file r_file_perms;
Chris PeBenito dc67f7
allow cupsd_t initrc_exec_t:file r_file_perms;
Chris PeBenito 992aba
domain_auto_trans(rpm_script_t, cupsd_exec_t, cupsd_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`ssh-agent.te', `
Chris PeBenito 992aba
domain_auto_trans(rpm_script_t, ssh_agent_exec_t, sysadm_ssh_agent_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`useradd.te', `
Chris PeBenito 992aba
domain_auto_trans(rpm_script_t, useradd_exec_t, useradd_t)
Chris PeBenito 992aba
domain_auto_trans(rpm_script_t, groupadd_exec_t, groupadd_t)
Chris PeBenito 992aba
role system_r types { useradd_t groupadd_t };
Chris PeBenito 992aba
allow { useradd_t groupadd_t } rpm_t:fd use;
Chris PeBenito 992aba
allow { useradd_t groupadd_t } rpm_t:fifo_file { read write };
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`bootloader.te',`
Chris PeBenito 992aba
allow bootloader_t rpm_t:fifo_file rw_file_perms;
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
optional_policy(`prelink.te', `
Chris PeBenito 992aba
domain_auto_trans(rpm_t, prelink_exec_t, prelink_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
ifdef(`hide_broken_symptoms', `
Chris PeBenito 992aba
optional_policy(`pamconsole.te', `
Chris PeBenito 992aba
domain_trans(rpm_t, pam_console_exec_t, rpm_script_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
')
Chris PeBenito 992aba
Chris PeBenito 992aba
ifdef(`unlimitedRPM', `
Chris PeBenito 992aba
typeattribute rpm_t auth_write;
Chris PeBenito 992aba
unconfined_domain(rpm_t)
Chris PeBenito 992aba
typeattribute rpm_script_t auth_write;
Chris PeBenito 992aba
unconfined_domain(rpm_script_t)
Chris PeBenito 992aba
')
Chris PeBenito 992aba
') dnl end TODO