|
Chris PeBenito |
e9e43f |
## <summary>Plymouth graphical boot</summary>
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Execute a domain transition to run plymouthd.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed to transition.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_domtrans', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_t, plymouthd_exec_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
domtrans_pattern($1, plymouthd_exec_t, plymouthd_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Execute the plymoth daemon in the current domain
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_exec', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_exec_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
can_exec($1, plymouthd_exec_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Allow domain to Stream socket connect
|
|
Chris PeBenito |
e9e43f |
## to Plymouth daemon.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_stream_connect', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
allow $1 plymouthd_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Execute the plymoth command in the current domain
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_exec_plymouth', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouth_exec_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
can_exec($1, plymouth_exec_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Execute a domain transition to run plymouthd.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed to transition.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_domtrans_plymouth', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouth_t, plymouth_exec_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
domtrans_pattern($1, plymouth_exec_t, plymouth_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Search plymouthd spool directories.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_search_spool', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_spool_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
allow $1 plymouthd_spool_t:dir search_dir_perms;
|
|
Chris PeBenito |
e9e43f |
files_search_spool($1)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Read plymouthd spool files.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_read_spool_files', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_spool_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
files_search_spool($1)
|
|
Chris PeBenito |
e9e43f |
read_files_pattern($1, plymouthd_spool_t, plymouthd_spool_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Create, read, write, and delete
|
|
Chris PeBenito |
e9e43f |
## plymouthd spool files.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_manage_spool_files', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_spool_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
files_search_spool($1)
|
|
Chris PeBenito |
e9e43f |
manage_files_pattern($1, plymouthd_spool_t, plymouthd_spool_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Search plymouthd lib directories.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_search_lib', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_var_lib_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
allow $1 plymouthd_var_lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
e9e43f |
files_search_var_lib($1)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Read plymouthd lib files.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_read_lib_files', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_var_lib_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
files_search_var_lib($1)
|
|
Chris PeBenito |
e9e43f |
read_files_pattern($1, plymouthd_var_lib_t, plymouthd_var_lib_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Create, read, write, and delete
|
|
Chris PeBenito |
e9e43f |
## plymouthd lib files.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_manage_lib_files', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_var_lib_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
files_search_var_lib($1)
|
|
Chris PeBenito |
e9e43f |
manage_files_pattern($1, plymouthd_var_lib_t, plymouthd_var_lib_t)
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Read plymouthd PID files.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_read_pid_files', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_var_run_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
files_search_pids($1)
|
|
Chris PeBenito |
e9e43f |
allow $1 plymouthd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
########################################
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## All of the rules required to administrate
|
|
Chris PeBenito |
e9e43f |
## an plymouthd environment
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## <param name="domain">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Domain allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
## <param name="role">
|
|
Chris PeBenito |
e9e43f |
## <summary>
|
|
Chris PeBenito |
e9e43f |
## Role allowed access.
|
|
Chris PeBenito |
e9e43f |
## </summary>
|
|
Chris PeBenito |
e9e43f |
## </param>
|
|
Chris PeBenito |
e9e43f |
## <rolecap/>
|
|
Chris PeBenito |
e9e43f |
#
|
|
Chris PeBenito |
e9e43f |
interface(`plymouthd_admin', `
|
|
Chris PeBenito |
e9e43f |
gen_require(`
|
|
Chris PeBenito |
e9e43f |
type plymouthd_t, plymouthd_spool_t, plymouthd_var_lib_t;
|
|
Chris PeBenito |
e9e43f |
type plymouthd_var_run_t;
|
|
Chris PeBenito |
e9e43f |
')
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
allow $1 plymouthd_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
e9e43f |
read_files_pattern($1, plymouthd_t, plymouthd_t)
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
admin_pattern($1, plymouthd_spool_t)
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
admin_pattern($1, plymouthd_var_lib_t)
|
|
Chris PeBenito |
e9e43f |
|
|
Chris PeBenito |
e9e43f |
admin_pattern($1, plymouthd_var_run_t)
|
|
Chris PeBenito |
e9e43f |
')
|