|
Chris PeBenito |
31b7c0 |
#DESC Anaconda - Red Hat Installation program
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Authors: Dan Walsh <dwalsh@redhat.com>
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
#################################
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Rules for the anaconda_t domain.
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# anaconda_t is the domain of the installation program
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
type anaconda_t, admin, etc_writer, fs_domain, privmem, auth_write, domain, privlog, privowner, privmodule, sysctl_kernel_writer;
|
|
Chris PeBenito |
31b7c0 |
role system_r types anaconda_t;
|
|
Chris PeBenito |
31b7c0 |
unconfined_domain(anaconda_t)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
role system_r types ldconfig_t;
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, ldconfig_exec_t, ldconfig_t)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Run other rc scripts in the anaconda_t domain.
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, initrc_exec_t, initrc_t)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`dmesg.te', `
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, dmesg_exec_t, dmesg_t)
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`distro_redhat', `
|
|
Chris PeBenito |
31b7c0 |
file_type_auto_trans(anaconda_t, boot_t, boot_runtime_t, file)
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`rpm.te', `
|
|
Chris PeBenito |
31b7c0 |
# Access /var/lib/rpm.
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, rpm_exec_t, rpm_t)
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
file_type_auto_trans(anaconda_t, var_log_t, var_log_ksyms_t, file)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`udev.te', `
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, udev_exec_t, udev_t)
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`ssh-agent.te', `
|
|
Chris PeBenito |
31b7c0 |
role system_r types sysadm_ssh_agent_t;
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t, ssh_agent_exec_t, sysadm_ssh_agent_t)
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
ifdef(`passwd.te', `
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(anaconda_t , admin_passwd_exec_t, sysadm_passwd_t)
|
|
Chris PeBenito |
31b7c0 |
')
|