## Linux hardware error daemon.
########################################
##
## Execute a domain transition to run mcelog.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`mcelog_domtrans',`
gen_require(`
type mcelog_t, mcelog_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, mcelog_exec_t, mcelog_t)
')
########################################
##
## All of the rules required to
## administrate an mcelog environment.
##
##
##
## Domain allowed access.
##
##
##
##
## Role allowed access.
##
##
##
#
interface(`mcelog_admin',`
gen_require(`
type mcelog_t, mcelog_initrc_exec_t, mcelog_log_t;
type mcelog_runtime_t, mcelog_etc_t;
')
allow $1 mcelog_t:process { ptrace signal_perms };
ps_process_pattern($1, mcelog_t)
init_startstop_service($1, $2, mcelog_t, mcelog_initrc_exec_t)
files_search_etc($1)
admin_pattern($1, mcelog_etc_t)
logging_search_logs($1)
admin_pattern($1, mcelog_log_t)
files_search_pids($1)
admin_pattern($1, mcelog_runtime_t)
')