## ## Final system configuration run during the first boot ## after installation of Red Hat/Fedora systems. ## ######################################## ## ## Execute firstboot in the firstboot domain. ## ## ## The type of the process performing this action. ## # interface(`firstboot_domtrans',` gen_require(` type firstboot_t, firstboot_exec_t; class process sigchld; class fd use; class fifo_file rw_file_perms; ') domain_auto_trans($1,firstboot_exec_t,firstboot_t) allow $1 firstboot_t:fd use; allow firstboot_t $1:fd use; allow firstboot_t $1:fifo_file rw_file_perms; allow firstboot_t $1:process sigchld; ') ######################################## ## ## Execute firstboot in the firstboot domain, and ## allow the specified role the firstboot domain. ## ## ## The type of the process performing this action. ## ## ## The role to be allowed the firstboot domain. ## ## ## The type of the terminal allow the firstboot domain to use. ## # interface(`firstboot_run',` gen_require(` type firstboot_t; class chr_file rw_term_perms; ') firstboot_domtrans($1) role $2 types firstboot_t; allow firstboot_t $3:chr_file rw_term_perms; ') ######################################## ## ## Inherit and use a file descriptor from firstboot. ## ## ## The type of the process performing this action. ## # interface(`firstboot_use_fd',` gen_require(` type firstboot_t; class fd use; ') allow $1 firstboot_t:fd use; ') ######################################## ## ## Do not audit attempts to inherit a ## file descriptor from firstboot. ## ## ## Domain to not audit. ## # interface(`firstboot_dontaudit_use_fd',` gen_require(` type firstboot_t; class fd use; ') dontaudit $1 firstboot_t:fd use; ') ######################################## ## ## Write to a firstboot unnamed pipe. ## ## ## The type of the process performing this action. ## # interface(`firstboot_write_pipe',` gen_require(` type firstboot_t; class fifo_file write; ') allow $1 firstboot_t:fifo_file write; ')