Skip to contentSkip to conversation

openoffice: add writer support for sending email directly to multiple recipients

PATCH New Guido Trentalancia 2 participants 2 messages Dec 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openoffice: add writer support for sending email directly to multiple recipients

This patch adds optional support to send emails directly from openoffice writer to multiple recipients.

Such functionality is different from the functionaly of sending emails through external email clients which is always enabled.

---
 policy/modules/contrib/openoffice.te |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
policy/modules/contrib/openoffice.te +18 -0
diff -pru a/policy/modules/contrib/openoffice.te b/policy/modules/contrib/openoffice.te
@@ -15,6 +15,18 @@ policy_module(openoffice, 1.0.2)
 ## </desc>
 gen_tunable(openoffice_allow_update, true)
 
+## <desc>
+##	<p>
+##	Determine whether openoffice writer
+##	can send emails directly (print to
+##	email). This is different from the
+##	functionality of sending emails
+##	through external clients which is
+##	always enabled.
+##	</p>
+## </desc>
+gen_tunable(openoffice_allow_email, false)
+
 attribute_role ooffice_roles;
 
 type ooffice_t;
@@ -82,6 +94,12 @@ tunable_policy(`openoffice_allow_update'
 	corenet_tcp_connect_http_port(ooffice_t)
 ')
 
+tunable_policy(`openoffice_allow_email',`
+	corenet_tcp_connect_smtp_port(ooffice_t)
+	corenet_tcp_sendrecv_smtp_port(ooffice_t)
+	corenet_sendrecv_smtp_client_packets(ooffice_t)
+')
+
 optional_policy(`
 	cups_read_config(ooffice_t)
 	cups_stream_connect(ooffice_t)
#1 lore raw

PATCH 1/1 openoffice: add writer support for sending email directly to multiple recipients

Quoted 46 lines · Guido Trentalancia via refpolicy

This patch adds optional support to send emails directly from openoffice writer to multiple recipients.

Such functionality is different from the functionaly of sending emails through external email clients which is always enabled.

---
 policy/modules/contrib/openoffice.te |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff -pru a/policy/modules/contrib/openoffice.te b/policy/modules/contrib/openoffice.te

policy/modules/contrib/openoffice.te +18 -0
@@ -15,6 +15,18 @@ policy_module(openoffice, 1.0.2)
 ## </desc>
 gen_tunable(openoffice_allow_update, true)
 
+## <desc>
+##	<p>
+##	Determine whether openoffice writer
+##	can send emails directly (print to
+##	email). This is different from the
+##	functionality of sending emails
+##	through external clients which is
+##	always enabled.
+##	</p>
+## </desc>
+gen_tunable(openoffice_allow_email, false)
+
 attribute_role ooffice_roles;
 
 type ooffice_t;
@@ -82,6 +94,12 @@ tunable_policy(`openoffice_allow_update'
 	corenet_tcp_connect_http_port(ooffice_t)
 ')
 
+tunable_policy(`openoffice_allow_email',`
+	corenet_tcp_connect_smtp_port(ooffice_t)
+	corenet_tcp_sendrecv_smtp_port(ooffice_t)
+	corenet_sendrecv_smtp_client_packets(ooffice_t)
+')
+
 optional_policy(`
 	cups_read_config(ooffice_t)
 	cups_stream_connect(ooffice_t)
Quoted 1 line

_______________________________________________

Merged.

Signature · 1 line
Chris PeBenito