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

Chris PeBenito 17de1b
##	Execute a rsync in a specified domain.
Chris PeBenito ff8f0a
##	

Chris PeBenito ff8f0a
##	

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

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="source_domain">
Chris PeBenito 17de1b
##	<summary>
Dominick Grift 288845
##	Domain allowed to transition.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="target_domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to transition to.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
# cjp: added for portage
Chris PeBenito 17de1b
interface(`rsync_entry_spec_domtrans',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type rsync_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	domain_trans($1, rsync_exec_t, $2)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute a rsync in a specified domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito ff8f0a
##	

Chris PeBenito 17de1b
##	Execute a rsync in a specified domain.
Chris PeBenito ff8f0a
##	

Chris PeBenito ff8f0a
##	

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

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="source_domain">
Chris PeBenito 17de1b
##	<summary>
Dominick Grift 288845
##	Domain allowed to transition.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="target_domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to transition to.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
# cjp: added for portage
Chris PeBenito 17de1b
interface(`rsync_entry_domtrans',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type rsync_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	domain_auto_trans($1, rsync_exec_t, $2)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute rsync in the caller domain domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`rsync_exec',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type rsync_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	can_exec($1, rsync_exec_t)
Chris PeBenito 17de1b
')
Dominick Grift 1031ee
Dominick Grift 1031ee
########################################
Dominick Grift 1031ee
## <summary>
Dominick Grift 1031ee
##	Read rsync config files.
Dominick Grift 1031ee
## </summary>
Dominick Grift 1031ee
## <param name="domain">
Dominick Grift 2a7245
##	<summary>
Dominick Grift 288845
##	Domain allowed access.
Dominick Grift 2a7245
##	</summary>
Dominick Grift 1031ee
## </param>
Dominick Grift 1031ee
#
Dominick Grift 1031ee
interface(`rsync_read_config',`
Dominick Grift 1031ee
	gen_require(`
Dominick Grift 1031ee
		type rsync_etc_t;
Dominick Grift 1031ee
	')
Dominick Grift 1031ee
Dan Walsh 3eaa99
	read_files_pattern($1, rsync_etc_t, rsync_etc_t)
Dominick Grift 1031ee
	files_search_etc($1)
Dominick Grift 1031ee
')
Dominick Grift 1031ee
Dominick Grift 1031ee
########################################
Dominick Grift 1031ee
## <summary>
Dominick Grift 1031ee
##	Write to rsync config files.
Dominick Grift 1031ee
## </summary>
Dominick Grift 1031ee
## <param name="domain">
Dominick Grift 2a7245
##	<summary>
Dominick Grift 288845
##	Domain allowed access.
Dominick Grift 2a7245
##	</summary>
Dominick Grift 1031ee
## </param>
Dominick Grift 1031ee
#
Dominick Grift 1031ee
interface(`rsync_write_config',`
Dominick Grift 1031ee
	gen_require(`
Dominick Grift 1031ee
		type rsync_etc_t;
Dominick Grift 1031ee
	')
Dominick Grift 1031ee
Dan Walsh 3eaa99
	write_files_pattern($1, rsync_etc_t, rsync_etc_t)
Dominick Grift 1031ee
	files_search_etc($1)
Dominick Grift 1031ee
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
########################################
Dan Walsh 3eaa99
## <summary>
Dan Walsh 3eaa99
##	Manage rsync config files.
Dan Walsh 3eaa99
## </summary>
Dan Walsh 3eaa99
## <param name="domain">
Dominick Grift 2a7245
##	<summary>
Dominick Grift 612346
##	Domain allowed access.
Dominick Grift 2a7245
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
interface(`rsync_manage_config',`
Dan Walsh 3eaa99
	gen_require(`
Dan Walsh 3eaa99
		type rsync_etc_t;
Dan Walsh 3eaa99
	')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
	manage_files_pattern($1, rsync_etc_t, rsync_etc_t)
Dan Walsh 3eaa99
	files_search_etc($1)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
########################################
Dan Walsh 3eaa99
## <summary>
Dan Walsh 3eaa99
##	Create objects in etc directories
Dan Walsh 3eaa99
##	with rsync etc type.
Dan Walsh 3eaa99
## </summary>
Dan Walsh 3eaa99
## <param name="domain">
Dan Walsh 3eaa99
##	<summary>
Dan Walsh 3eaa99
##	Domain allowed to transition.
Dan Walsh 3eaa99
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
## <param name="object_class">
Dan Walsh 3eaa99
##	<summary>
Dan Walsh 3eaa99
##	Class of the object being created.
Dan Walsh 3eaa99
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
interface(`rsync_filetrans_config',`
Dan Walsh 3eaa99
	gen_require(`
Dan Walsh 3eaa99
		type rsync_etc_t;
Dan Walsh 3eaa99
	')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
	files_etc_filetrans($1, rsync_etc_t, $2)
Dan Walsh 3eaa99
')