Chris PeBenito 3c9b2e
## <summary>policy for z/OS Remote-services Audit dispatcher plugin</summary>
Chris PeBenito 3c9b2e
Chris PeBenito 3c9b2e
########################################
Chris PeBenito 3c9b2e
## <summary>
Chris PeBenito 3c9b2e
##      Execute a domain transition to run audispd-zos-remote.
Chris PeBenito 3c9b2e
## </summary>
Chris PeBenito 3c9b2e
## <param name="domain">
Chris PeBenito 3c9b2e
## <summary>
Chris PeBenito 3c9b2e
##      Domain allowed to transition.
Chris PeBenito 3c9b2e
## </summary>
Chris PeBenito 3c9b2e
## </param>
Chris PeBenito 3c9b2e
#
Chris PeBenito 3c9b2e
interface(`zosremote_domtrans',`
Chris PeBenito 3c9b2e
        gen_require(`
Chris PeBenito 455155
                type zos_remote_t, zos_remote_exec_t;
Chris PeBenito 3c9b2e
        ')
Chris PeBenito 3c9b2e
Chris PeBenito 3c9b2e
        domtrans_pattern($1, zos_remote_exec_t, zos_remote_t)
Chris PeBenito 3c9b2e
')
Chris PeBenito 3c9b2e
Chris PeBenito 3c9b2e
########################################
Chris PeBenito 3c9b2e
## <summary>
Chris PeBenito 3c9b2e
##	Allow specified type and role to transition and
Chris PeBenito 3c9b2e
##	run in the zos_remote_t domain. Allow specified type
Chris PeBenito 3c9b2e
##	to use zos_remote_t terminal.
Chris PeBenito 3c9b2e
## </summary>
Chris PeBenito 3c9b2e
## <param name="domain">
Chris PeBenito 3c9b2e
##	<summary>
Chris PeBenito 3c9b2e
##	Domain allowed access
Chris PeBenito 3c9b2e
##	</summary>
Chris PeBenito 3c9b2e
## </param>
Chris PeBenito 3c9b2e
## <param name="role">
Chris PeBenito 3c9b2e
##	<summary>
Chris PeBenito 3c9b2e
##	The role to be allowed the zos_remote domain.
Chris PeBenito 3c9b2e
##	</summary>
Chris PeBenito 3c9b2e
## </param>
Chris PeBenito 3c9b2e
#
Chris PeBenito 3c9b2e
interface(`zosremote_run',`
Chris PeBenito 3c9b2e
	gen_require(`
Chris PeBenito 3c9b2e
		type zos_remote_t;
Chris PeBenito 3c9b2e
	')
Chris PeBenito 3c9b2e
Chris PeBenito 3c9b2e
	zosremote_domtrans($1)
Chris PeBenito 3c9b2e
	role $2 types zos_remote_t;
Chris PeBenito 3c9b2e
')