Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Oddjob provides a mechanism by which unprivileged applications can
Chris PeBenito e2b84e
##	request that specified privileged operations be performed on their
Chris PeBenito e2b84e
##	behalf.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Execute a domain transition to run oddjob.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## <param name="domain">
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Domain allowed to transition.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## </param>
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
interface(`oddjob_domtrans',`
Chris PeBenito e2b84e
	gen_require(`
Chris PeBenito e2b84e
		type oddjob_t, oddjob_exec_t;
Chris PeBenito e2b84e
	')
Chris PeBenito e2b84e
Chris PeBenito c0868a
	domtrans_pattern($1,oddjob_exec_t,oddjob_t)
Chris PeBenito e2b84e
')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Make the specified program domain accessable
Chris PeBenito e2b84e
##	from the oddjob.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## <param name="domain">
Chris PeBenito e2b84e
##	<summary>
Chris PeBenito e2b84e
##	The type of the process to transition to.
Chris PeBenito e2b84e
##	</summary>
Chris PeBenito e2b84e
## </param>
Chris PeBenito e2b84e
## <param name="entrypoint">
Chris PeBenito e2b84e
##	<summary>
Chris PeBenito e2b84e
##	The type of the file used as an entrypoint to this domain.
Chris PeBenito e2b84e
##	</summary>
Chris PeBenito e2b84e
## </param>
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
interface(`oddjob_system_entry',`
Chris PeBenito e2b84e
	gen_require(`
Chris PeBenito e2b84e
		type oddjob_t;
Chris PeBenito e2b84e
	')
Chris PeBenito e2b84e
Chris PeBenito c0868a
	domtrans_pattern(oddjob_t, $2, $1)
Chris PeBenito e2b84e
')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Send and receive messages from
Chris PeBenito e2b84e
##	oddjob over dbus.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## <param name="domain">
Chris PeBenito e2b84e
##	<summary>
Chris PeBenito e2b84e
##	Domain allowed access.
Chris PeBenito e2b84e
##	</summary>
Chris PeBenito e2b84e
## </param>
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
interface(`oddjob_dbus_chat',`
Chris PeBenito e2b84e
	gen_require(`
Chris PeBenito e2b84e
		type oddjob_t;
Chris PeBenito e2b84e
		class dbus send_msg;
Chris PeBenito e2b84e
	')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
	allow $1 oddjob_t:dbus send_msg;
Chris PeBenito e2b84e
	allow oddjob_t $1:dbus send_msg;
Chris PeBenito e2b84e
')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Execute a domain transition to run oddjob_mkhomedir.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## <param name="domain">
Chris PeBenito e2b84e
## <summary>
Chris PeBenito e2b84e
##	Domain allowed to transition.
Chris PeBenito e2b84e
## </summary>
Chris PeBenito e2b84e
## </param>
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
interface(`oddjob_domtrans_mkhomedir',`
Chris PeBenito e2b84e
	gen_require(`
Chris PeBenito e2b84e
		type oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t;
Chris PeBenito e2b84e
	')
Chris PeBenito e2b84e
Chris PeBenito c0868a
	domtrans_pattern($1,oddjob_mkhomedir_exec_t,oddjob_mkhomedir_t)
Chris PeBenito e2b84e
')