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