Chris PeBenito 57a96c
## <summary>
Chris PeBenito 57a96c
##	Final system configuration run during the first boot
Chris PeBenito 57a96c
##	after installation of Red Hat/Fedora systems.
Chris PeBenito 57a96c
## </summary>
Chris PeBenito 57a96c
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
## <summary>
Chris PeBenito 57a96c
##	Execute firstboot in the firstboot domain.
Chris PeBenito 57a96c
## </summary>
Chris PeBenito 57a96c
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The type of the process performing this action.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
interface(`firstboot_domtrans',`
Chris PeBenito 57a96c
	gen_require(`
Chris PeBenito 57a96c
		type firstboot_t, firstboot_exec_t;
Chris PeBenito 57a96c
	')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
	domain_auto_trans($1,firstboot_exec_t,firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
	allow $1 firstboot_t:fd use;
Chris PeBenito 57a96c
	allow firstboot_t $1:fd use;
Chris PeBenito 57a96c
	allow firstboot_t $1:fifo_file rw_file_perms;
Chris PeBenito 57a96c
	allow firstboot_t $1:process sigchld;
Chris PeBenito 57a96c
')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
## <summary>
Chris PeBenito 57a96c
##	Execute firstboot in the firstboot domain, and
Chris PeBenito 57a96c
##	allow the specified role the firstboot domain.
Chris PeBenito 57a96c
## </summary>
Chris PeBenito 57a96c
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The type of the process performing this action.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
## <param name="role">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The role to be allowed the firstboot domain.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
## <param name="terminal">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The type of the terminal allow the firstboot domain to use.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
interface(`firstboot_run',`
Chris PeBenito 57a96c
	gen_require(`
Chris PeBenito 57a96c
		type firstboot_t;
Chris PeBenito 57a96c
	')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
	firstboot_domtrans($1)
Chris PeBenito 57a96c
	role $2 types firstboot_t;
Chris PeBenito 57a96c
	allow firstboot_t $3:chr_file rw_term_perms;
Chris PeBenito 57a96c
')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
## <summary>
Chris PeBenito 57a96c
##	Inherit and use a file descriptor from firstboot.
Chris PeBenito 57a96c
## </summary>
Chris PeBenito 57a96c
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The type of the process performing this action.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
#
Chris PeBenito 1c1ac6
interface(`firstboot_use_fds',`
Chris PeBenito 57a96c
	gen_require(`
Chris PeBenito 57a96c
		type firstboot_t;
Chris PeBenito 57a96c
	')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
	allow $1 firstboot_t:fd use;
Chris PeBenito 57a96c
')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
## <summary>
Chris PeBenito b11a75
##	Do not audit attempts to inherit a
Chris PeBenito b11a75
##	file descriptor from firstboot.
Chris PeBenito b11a75
## </summary>
Chris PeBenito b11a75
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito b11a75
##	Domain to not audit.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito b11a75
## </param>
Chris PeBenito b11a75
#
Chris PeBenito 1c1ac6
interface(`firstboot_dontaudit_use_fds',`
Chris PeBenito b11a75
	gen_require(`
Chris PeBenito b11a75
		type firstboot_t;
Chris PeBenito b11a75
	')
Chris PeBenito b11a75
Chris PeBenito b11a75
	dontaudit $1 firstboot_t:fd use;
Chris PeBenito b11a75
')
Chris PeBenito b11a75
Chris PeBenito b11a75
########################################
Chris PeBenito b11a75
## <summary>
Chris PeBenito 57a96c
##	Write to a firstboot unnamed pipe.
Chris PeBenito 57a96c
## </summary>
Chris PeBenito 57a96c
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 57a96c
##	The type of the process performing this action.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 57a96c
## </param>
Chris PeBenito 57a96c
#
Chris PeBenito 1815ba
interface(`firstboot_write_pipes',`
Chris PeBenito 57a96c
	gen_require(`
Chris PeBenito 57a96c
		type firstboot_t;
Chris PeBenito 57a96c
	')
Chris PeBenito 57a96c
Chris PeBenito 57a96c
	allow $1 firstboot_t:fifo_file write;
Chris PeBenito 57a96c
')
Chris PeBenito c8d5b3
########################################
Chris PeBenito c8d5b3
## <summary>
Chris PeBenito c8d5b3
##	Read firstboot writable config files.
Chris PeBenito c8d5b3
## </summary>
Chris PeBenito c8d5b3
## <param name="domain">
Chris PeBenito c8d5b3
##	<summary>
Chris PeBenito c8d5b3
##	The type of the process performing this action.
Chris PeBenito c8d5b3
##	</summary>
Chris PeBenito c8d5b3
## </param>
Chris PeBenito c8d5b3
#
Chris PeBenito c8d5b3
interface(`firstboot_read_rw_files',`
Chris PeBenito c8d5b3
	gen_require(`
Chris PeBenito c8d5b3
		type firstboot_rw_t;
Chris PeBenito c8d5b3
	')
Chris PeBenito c8d5b3
Chris PeBenito c8d5b3
	allow $1 firstboot_rw_t:file r_file_perms;
Chris PeBenito c8d5b3
')