Chris PeBenito 9401ae1
## <summary>Evolution email client</summary>
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Role access for evolution
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="role">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Role allowed access
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	User domain for the role
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`evolution_role',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type evolution_t, evolution_exec_t, evolution_home_t;
Chris PeBenito 9401ae1
		type evolution_alarm_t, evolution_alarm_exec_t;
Chris PeBenito 9401ae1
		type evolution_exchange_t, evolution_exchange_exec_t;
Chris PeBenito 9401ae1
		type evolution_exchange_orbit_tmp_t;
Chris PeBenito 9401ae1
		type evolution_server_t, evolution_server_exec_t;
Chris PeBenito 9401ae1
		type evolution_webcal_t, evolution_webcal_exec_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	role $1 types { evolution_t evolution_alarm_t evolution_exchange_t };
Chris PeBenito 9401ae1
	role $1 types { evolution_server_t evolution_webcal_t };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	domtrans_pattern($2, evolution_exec_t, evolution_t)
Chris PeBenito 9401ae1
	domtrans_pattern($2, evolution_alarm_exec_t, evolution_alarm_t)
Chris PeBenito 9401ae1
	domtrans_pattern($2, evolution_exchange_exec_t, evolution_exchange_t)
Chris PeBenito 9401ae1
	domtrans_pattern($2, evolution_server_exec_t, evolution_server_t)
Chris PeBenito 9401ae1
	domtrans_pattern($2, evolution_webcal_exec_t, evolution_webcal_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	ps_process_pattern($2, evolution_t)
Chris PeBenito 9401ae1
	ps_process_pattern($2, evolution_alarm_t)
Chris PeBenito 9401ae1
	ps_process_pattern($2, evolution_exchange_t)
Chris PeBenito 9401ae1
	ps_process_pattern($2, evolution_server_t)
Chris PeBenito 9401ae1
	ps_process_pattern($2, evolution_webcal_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow evolution_t $2:dir search;
Chris PeBenito 9401ae1
	allow evolution_t $2:file read;
Chris PeBenito 9401ae1
	allow evolution_t $2:lnk_file read;
Chris PeBenito 9401ae1
	allow evolution_t $2:unix_stream_socket connectto;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $2 evolution_t:unix_stream_socket connectto;
Chris PeBenito 9401ae1
	allow $2 evolution_t:process noatsecure;
Chris PeBenito 9401ae1
	allow $2 evolution_t:process signal_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	# Access .evolution
Chris PeBenito 9401ae1
	allow $2 evolution_home_t:dir manage_dir_perms;
Chris PeBenito 9401ae1
	allow $2 evolution_home_t:file manage_file_perms;
Chris PeBenito 9401ae1
	allow $2 evolution_home_t:lnk_file manage_lnk_file_perms;
Chris PeBenito 9401ae1
	allow $2 evolution_home_t:{ dir file lnk_file } { relabelfrom relabelto };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow evolution_exchange_t $2:unix_stream_socket connectto;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	# Clock applet talks to exchange (FIXME: Needs policy)
Chris PeBenito 9401ae1
	allow $2 evolution_exchange_t:unix_stream_socket connectto;
Chris PeBenito 9401ae1
	allow $2 evolution_exchange_orbit_tmp_t:sock_file write;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Create objects in users evolution home folders.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
## <param name="file_type">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Private file type.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
## <param name="class">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	The object class of the object being created.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`evolution_home_filetrans',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type evolution_home_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $1 evolution_home_t:dir rw_dir_perms;
Chris PeBenito 9401ae1
	type_transition $1 evolution_home_t:$3 $2;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Connect to evolution unix stream socket.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`evolution_stream_connect',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type evolution_t, evolution_home_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $1 evolution_t:unix_stream_socket connectto;
Chris PeBenito 9401ae1
	allow $1 evolution_home_t:dir search;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Send and receive messages from
Chris PeBenito 9401ae1
##	evolution over dbus.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`evolution_dbus_chat',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type evolution_t;
Chris PeBenito 9401ae1
		class dbus send_msg;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $1 evolution_t:dbus send_msg;
Chris PeBenito 9401ae1
	allow evolution_t $1:dbus send_msg;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Send and receive messages from
Chris PeBenito 9401ae1
##	evolution_alarm over dbus.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`evolution_alarm_dbus_chat',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type evolution_alarm_t;
Chris PeBenito 9401ae1
		class dbus send_msg;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $1 evolution_alarm_t:dbus send_msg;
Chris PeBenito 9401ae1
	allow evolution_alarm_t $1:dbus send_msg;
Chris PeBenito 9401ae1
')