## policy for pwauth
########################################
##
## Transition to pwauth.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`pwauth_domtrans',`
gen_require(`
type pwauth_t, pwauth_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, pwauth_exec_t, pwauth_t)
')
########################################
##
## Execute pwauth in the pwauth domain, and
## allow the specified role the pwauth domain.
##
##
##
## Domain allowed to transition
##
##
##
##
## The role to be allowed the pwauth domain.
##
##
#
interface(`pwauth_run',`
gen_require(`
type pwauth_t;
')
pwauth_domtrans($1)
role $2 types pwauth_t;
')
########################################
##
## Role access for pwauth
##
##
##
## Role allowed access
##
##
##
##
## User domain for the role
##
##
#
interface(`pwauth_role',`
gen_require(`
type pwauth_t;
')
role $1 types pwauth_t;
pwauth_domtrans($2)
ps_process_pattern($2, pwauth_t)
allow $2 pwauth_t:process signal;
')