Chris PeBenito 35ecf8
## <summary>Fast incremental file transfer for synchronization</summary>
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
########################################
Chris PeBenito 02f9b2
## <summary>
Chris PeBenito 02f9b2
##	Make rsync an entry point for
Chris PeBenito 02f9b2
##	the specified domain.
Chris PeBenito 02f9b2
## </summary>
Chris PeBenito 02f9b2
## <param name="domain">
Chris PeBenito 02f9b2
##	<summary>
Chris PeBenito 02f9b2
##	The domain for which init scripts are an entrypoint.
Chris PeBenito 02f9b2
##	</summary>
Chris PeBenito 02f9b2
## </param>
Chris PeBenito 02f9b2
# cjp: added for portage
Chris PeBenito 02f9b2
interface(`rsync_entry_type',`
Chris PeBenito 02f9b2
	gen_require(`
Chris PeBenito 02f9b2
		type rsync_exec_t;
Chris PeBenito 02f9b2
	')
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
	domain_entry_file($1,rsync_exec_t)
Chris PeBenito 02f9b2
')
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
########################################
Chris PeBenito 02f9b2
## <summary>
Chris PeBenito 02f9b2
##	Execute a rsync in a specified domain.
Chris PeBenito 02f9b2
## </summary>
Chris PeBenito 02f9b2
## <desc>
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##	Execute a rsync in a specified domain.
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##      No interprocess communication (signals, pipes,
Chris PeBenito 02f9b2
##      etc.) is provided by this interface since
Chris PeBenito 02f9b2
##      the domains are not owned by this module.
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
## </desc>
Chris PeBenito 02f9b2
## <param name="source_domain">
Chris PeBenito 02f9b2
##	<summary>
Chris PeBenito 02f9b2
##	Domain to transition from.
Chris PeBenito 02f9b2
##	</summary>
Chris PeBenito 02f9b2
## </param>
Chris PeBenito 02f9b2
## <param name="target_domain">
Chris PeBenito 02f9b2
##	<summary>
Chris PeBenito 02f9b2
##	Domain to transition to.
Chris PeBenito 02f9b2
##	</summary>
Chris PeBenito 02f9b2
## </param>
Chris PeBenito 02f9b2
# cjp: added for portage
Chris PeBenito 02f9b2
interface(`rsync_entry_spec_domtrans',`
Chris PeBenito 02f9b2
	gen_require(`
Chris PeBenito 02f9b2
		type rsync_exec_t;
Chris PeBenito 02f9b2
	')
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
	domain_trans($1,rsync_exec_t,$2)
Chris PeBenito 02f9b2
')
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
########################################
Chris PeBenito 02f9b2
## <summary>
Chris PeBenito 02f9b2
##	Execute a rsync in a specified domain.
Chris PeBenito 02f9b2
## </summary>
Chris PeBenito 02f9b2
## <desc>
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##	Execute a rsync in a specified domain.
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
##      No interprocess communication (signals, pipes,
Chris PeBenito 02f9b2
##      etc.) is provided by this interface since
Chris PeBenito 02f9b2
##      the domains are not owned by this module.
Chris PeBenito 02f9b2
##      

Chris PeBenito 02f9b2
## </desc>
Chris PeBenito 02f9b2
## <param name="source_domain">
Chris PeBenito 02f9b2
##	<summary>
Chris PeBenito 02f9b2
##	Domain to transition from.
Chris PeBenito 02f9b2
##	</summary>
Chris PeBenito 02f9b2
## </param>
Chris PeBenito 02f9b2
## <param name="target_domain">
Chris PeBenito 02f9b2
##	<summary>
Chris PeBenito 02f9b2
##	Domain to transition to.
Chris PeBenito 02f9b2
##	</summary>
Chris PeBenito 02f9b2
## </param>
Chris PeBenito 02f9b2
# cjp: added for portage
Chris PeBenito 02f9b2
interface(`rsync_entry_domtrans',`
Chris PeBenito 02f9b2
	gen_require(`
Chris PeBenito 02f9b2
		type rsync_exec_t;
Chris PeBenito 02f9b2
	')
Chris PeBenito 02f9b2
Chris PeBenito 02f9b2
	domain_auto_trans($1,rsync_exec_t,$2)
Chris PeBenito 02f9b2
')
Chris PeBenito f30e6e
Chris PeBenito f30e6e
########################################
Chris PeBenito f30e6e
## <summary>
Chris PeBenito f30e6e
##	Execute rsync in the caller domain domain.
Chris PeBenito f30e6e
## </summary>
Chris PeBenito f30e6e
## <param name="domain">
Chris PeBenito f30e6e
##	<summary>
Chris PeBenito f30e6e
##	Domain allowed access.
Chris PeBenito f30e6e
##	</summary>
Chris PeBenito f30e6e
## </param>
Chris PeBenito f30e6e
#
Chris PeBenito f30e6e
interface(`rsync_exec',`
Chris PeBenito f30e6e
	gen_require(`
Chris PeBenito f30e6e
		type rsync_exec_t;
Chris PeBenito f30e6e
	')
Chris PeBenito f30e6e
Chris PeBenito f30e6e
	can_exec($1,rsync_exec_t)
Chris PeBenito f30e6e
')