## rkhunter - rootkit checker.
########################################
##
## Execute a domain transition to run rkhunter.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`rkhunter_domtrans',`
gen_require(`
type rkhunter_t, rkhunter_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, rkhunter_exec_t, rkhunter_t)
')
########################################
##
## Execute rkhunter in the rkhunter domain,
## and allow the specified role
## the rkhunter domain.
##
##
##
## Domain allowed to transition.
##
##
##
##
## Role allowed access.
##
##
#
interface(`rkhunter_run',`
gen_require(`
attribute_role rkhunter_roles;
')
rkhunter_domtrans($1)
roleattribute $2 rkhunter_roles;
')