Chris PeBenito ea557a
## <summary>Cyrus is an IMAP service intended to be run on sealed servers</summary>
Chris PeBenito ea557a
Chris PeBenito ea557a
########################################
Chris PeBenito ea557a
## <summary>
Chris PeBenito ea557a
##	Allow caller to create, read, write,
Chris PeBenito ea557a
##	and delete cyrus data files.
Chris PeBenito ea557a
## </summary>
Chris PeBenito ea557a
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito ea557a
##      Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito ea557a
## </param>
Chris PeBenito ea557a
#
Chris PeBenito ea557a
interface(`cyrus_manage_data',`
Chris PeBenito ea557a
	gen_require(`
Chris PeBenito ea557a
		type cyrus_var_lib_t;
Chris PeBenito ea557a
	')
Chris PeBenito ea557a
Chris PeBenito ea557a
	files_search_var_lib($1)
Chris PeBenito ea557a
	allow $1 cyrus_var_lib_t:dir rw_dir_perms;
Chris PeBenito ea557a
	allow $1 cyrus_var_lib_t:file manage_file_perms;
Chris PeBenito ea557a
')
Chris PeBenito e99359
Chris PeBenito e99359
Chris PeBenito e99359
########################################
Chris PeBenito e99359
## <summary>
Chris PeBenito e99359
##	Connect to Cyrus using a unix domain stream socket.
Chris PeBenito e99359
## </summary>
Chris PeBenito e99359
## <param name="domain">
Chris PeBenito e99359
##	<summary>
Chris PeBenito e99359
##	Domain allowed access.
Chris PeBenito e99359
##	</summary>
Chris PeBenito e99359
## </param>
Chris PeBenito e99359
#
Chris PeBenito e99359
interface(`cyrus_stream_connect',`
Chris PeBenito e99359
	gen_require(`
Chris PeBenito e99359
		type cyrus_t, cyrus_var_lib_t;
Chris PeBenito e99359
	')
Chris PeBenito e99359
Chris PeBenito e99359
	files_search_var_lib($1)
Chris PeBenito e99359
	allow $1 cyrus_var_lib_t:dir search;
Chris PeBenito e99359
	allow $1 cyrus_var_lib_t:sock_file write;
Chris PeBenito e99359
	allow $1 cyrus_t:unix_stream_socket connectto;
Chris PeBenito e99359
')