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 c0868a
	domtrans_pattern($1,firstboot_exec_t,firstboot_t)
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 d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <summary>
Chris PeBenito d6d16b
##	Read and Write to a firstboot unnamed pipe.
Chris PeBenito d6d16b
## </summary>
Chris PeBenito d6d16b
## <param name="domain">
Chris PeBenito d6d16b
##	<summary>
Chris PeBenito d6d16b
##	The type of the process performing this action.
Chris PeBenito d6d16b
##	</summary>
Chris PeBenito d6d16b
## </param>
Chris PeBenito d6d16b
#
Chris PeBenito d6d16b
interface(`firstboot_rw_pipes',`
Chris PeBenito d6d16b
	gen_require(`
Chris PeBenito d6d16b
		type firstboot_t;
Chris PeBenito d6d16b
	')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
	allow $1 firstboot_t:fifo_file { read write };
Chris PeBenito d6d16b
')
Chris PeBenito 9af48e
Chris PeBenito 9af48e
########################################
Chris PeBenito 9af48e
## <summary>
Chris PeBenito 9af48e
## 	Do not audit attemps to read and write to a firstboot unnamed pipe.
Chris PeBenito 9af48e
## </summary>
Chris PeBenito 9af48e
## <param name="domain">
Chris PeBenito 9af48e
##	<summary>
Chris PeBenito 9af48e
##	Domain to not audit.
Chris PeBenito 9af48e
##	</summary>
Chris PeBenito 9af48e
## </param>
Chris PeBenito 9af48e
#
Chris PeBenito 9af48e
interface(`firstboot_dontaudit_rw_pipes',`
Chris PeBenito 9af48e
	gen_require(`
Chris PeBenito 9af48e
		type firstboot_t;
Chris PeBenito 9af48e
	')
Chris PeBenito 9af48e
Chris PeBenito 9af48e
	dontaudit $1 firstboot_t:fifo_file { read write };
Chris PeBenito 9af48e
')