2005-08-17 14:14:07 +00:00
|
|
|
## <summary>
|
|
|
|
## Final system configuration run during the first boot
|
|
|
|
## after installation of Red Hat/Fedora systems.
|
|
|
|
## </summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute firstboot in the firstboot domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`firstboot_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type firstboot_t, firstboot_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, firstboot_exec_t, firstboot_t)
|
2005-08-17 14:14:07 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute firstboot in the firstboot domain, and
|
|
|
|
## allow the specified role the firstboot domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The role to be allowed the firstboot domain.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="terminal">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The type of the terminal allow the firstboot domain to use.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`firstboot_run',`
|
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
firstboot_domtrans($1)
|
|
|
|
role $2 types firstboot_t;
|
|
|
|
allow firstboot_t $3:chr_file rw_term_perms;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Inherit and use a file descriptor from firstboot.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`firstboot_use_fds',`
|
2005-08-17 14:14:07 +00:00
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 firstboot_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-09-05 16:47:19 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to inherit a
|
|
|
|
## file descriptor from firstboot.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`firstboot_dontaudit_use_fds',`
|
2005-09-05 16:47:19 +00:00
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 firstboot_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-08-17 14:14:07 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Write to a firstboot unnamed pipe.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 14:14:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`firstboot_write_pipes',`
|
2005-08-17 14:14:07 +00:00
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 firstboot_t:fifo_file write;
|
|
|
|
')
|
2006-12-04 20:10:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and Write to a firstboot unnamed pipe.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`firstboot_rw_pipes',`
|
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 firstboot_t:fifo_file { read write };
|
|
|
|
')
|
2007-04-10 13:10:58 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attemps to read and write to a firstboot unnamed pipe.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`firstboot_dontaudit_rw_pipes',`
|
|
|
|
gen_require(`
|
|
|
|
type firstboot_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 firstboot_t:fifo_file { read write };
|
|
|
|
')
|