All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.net (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v2] Gnome and Evolution dbus chat permissions
Date: Wed, 19 Apr 2017 14:43:12 +0200	[thread overview]
Message-ID: <1492605792.4994.7.camel@trentalancia.net> (raw)
In-Reply-To: <1492604556.4994.6.camel@trentalancia.net>

This patch adds assorted permission to chat over dbus needed
for the correct functioning of Gnome and Evolution.

This second version, simply removes an extra "#" prefix from
the comments.

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
---
 policy/modules/contrib/evolution.te |    5 ++++
 policy/modules/contrib/gnome.if     |   37 ++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff -pru refpolicy-git-18042017-1918-orig/policy/modules/contrib/evolution.te refpolicy-git-18042017-1918/policy/modules/contrib/evolution.te
--- refpolicy-git-18042017-1918-orig/policy/modules/contrib/evolution.te	2017-03-29 17:58:00.276386397 +0200
+++ refpolicy-git-18042017-1918/policy/modules/contrib/evolution.te	2017-04-18 19:39:13.184604734 +0200
@@ -340,6 +340,11 @@ tunable_policy(`use_samba_home_dirs',`
 
 optional_policy(`
 	dbus_all_session_bus_client(evolution_alarm_t)
+	dbus_connect_all_session_bus(evolution_alarm_t)
+
+	optional_policy(`
+		evolution_dbus_chat(evolution_alarm_t)
+	')
 ')
 
 optional_policy(`
diff -pru refpolicy-git-18042017-1918-orig/policy/modules/contrib/gnome.if refpolicy-git-18042017-1918/policy/modules/contrib/gnome.if
--- refpolicy-git-18042017-1918-orig/policy/modules/contrib/gnome.if	2017-03-29 17:58:00.281386397 +0200
+++ refpolicy-git-18042017-1918/policy/modules/contrib/gnome.if	2017-04-18 19:51:01.702601837 +0200
@@ -112,8 +112,17 @@ template(`gnome_role_template',`
 		dbus_spec_session_domain($1, $1_gkeyringd_t, gkeyringd_exec_t)
 
 		optional_policy(`
+			evolution_dbus_chat($1_gkeyringd_t)
+		')
+
+		optional_policy(`
+			gnome_dbus_chat_gconfd($3)
 			gnome_dbus_chat_gkeyringd($1, $3)
 		')
+
+		optional_policy(`
+			wm_dbus_chat($1, $1_gkeyringd_t)
+		')
 	')
 ')
 
@@ -682,6 +691,34 @@ interface(`gnome_read_keyring_home_files
 ')
 
 ########################################
+## <summary>
+##	Send and receive messages from
+##	gnome configuration daemon over
+##	dbus.
+## </summary>
+## <param name="role_prefix">
+##	<summary>
+##	The prefix of the user domain (e.g., user
+##	is the prefix for user_t).
+##	</summary>
+## </param>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`gnome_dbus_chat_gconfd',`
+	gen_require(`
+		type gconfd_t;
+		class dbus send_msg;
+	')
+
+	allow $1 gconfd_t:dbus send_msg;
+	allow gconfd_t $1:dbus send_msg;
+')
+
+########################################
 ## <summary>
 ##	Send and receive messages from
 ##	gnome keyring daemon over dbus.

  reply	other threads:[~2017-04-19 12:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 18:04 [refpolicy] [PATCH] Gnome and Evolution dbus chat permissions Guido Trentalancia
2017-04-19  1:51 ` Chris PeBenito
2017-04-19 11:23   ` Guido Trentalancia
2017-04-19 12:18   ` Guido Trentalancia
2017-04-19 12:22     ` Guido Trentalancia
2017-04-19 12:43       ` Guido Trentalancia [this message]
2017-04-19 12:54   ` Guido Trentalancia
2017-04-19 13:23     ` Russell Coker
2017-04-19 13:27       ` Guido Trentalancia
2017-04-19 13:37       ` [refpolicy] [PATCH v3] " Guido Trentalancia
2017-04-20 23:19         ` Chris PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492605792.4994.7.camel@trentalancia.net \
    --to=guido@trentalancia.net \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.