## Initial system configuration utility.
########################################
##
## Execute firstboot in the firstboot domain.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`firstboot_domtrans',`
gen_require(`
type firstboot_t, firstboot_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, firstboot_exec_t, firstboot_t)
')
########################################
##
## Execute firstboot in the firstboot
## domain, and allow the specified role
## the firstboot domain.
##
##
##
## Domain allowed to transition.
##
##
##
##
## Role allowed access.
##
##
#
interface(`firstboot_run',`
gen_require(`
attribute_role firstboot_roles;
')
firstboot_domtrans($1)
roleattribute $2 firstboot_roles;
')
########################################
##
## Inherit and use firstboot file descriptors.
##
##
##
## Domain allowed access.
##
##
#
interface(`firstboot_use_fds',`
gen_require(`
type firstboot_t;
')
allow $1 firstboot_t:fd use;
')
########################################
##
## Do not audit attempts to inherit
## firstboot file descriptors.
##
##
##
## Domain to not audit.
##
##
#
interface(`firstboot_dontaudit_use_fds',`
gen_require(`
type firstboot_t;
')
dontaudit $1 firstboot_t:fd use;
')
########################################
##
## Write firstboot unnamed pipes.
##
##
##
## Domain allowed access.
##
##
#
interface(`firstboot_write_pipes',`
gen_require(`
type firstboot_t;
')
allow $1 firstboot_t:fifo_file write;
')
########################################
##
## Read and Write firstboot unnamed pipes.
##
##
##
## Domain allowed access.
##
##
#
interface(`firstboot_rw_pipes',`
gen_require(`
type firstboot_t;
')
allow $1 firstboot_t:fifo_file rw_inherited_fifo_file_perms;
')
########################################
##
## Do not audit attempts to read and
## write firstboot unnamed pipes.
##
##
##
## Domain to not audit.
##
##
#
interface(`firstboot_dontaudit_rw_pipes',`
gen_require(`
type firstboot_t;
')
dontaudit $1 firstboot_t:fifo_file { read write };
')
########################################
##
## Do not audit attempts to read and
## write firstboot unix domain
## stream sockets.
##
##
##
## Domain to not audit.
##
##
#
interface(`firstboot_dontaudit_rw_stream_sockets',`
gen_require(`
type firstboot_t;
')
dontaudit $1 firstboot_t:unix_stream_socket { read write };
')