All of lore.kernel.org
 help / color / mirror / Atom feed
From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 3/4] Allow the dbusd_t domains to read xdg data
Date: Sun, 4 Sep 2011 14:14:07 +0200	[thread overview]
Message-ID: <20110904121406.GD11390@siphos.be> (raw)
In-Reply-To: <20110904121223.GA11390@siphos.be>

The dbus domains currently hold userdom_read_user_home_content_files,
partially due to it requiring the xdg data (xdg_data_home_t).

Grant xdg_read_data_home to the dbus domain keeps this. From first looks
of it, other xdg locations are not needed by dbus.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 policy/modules/services/dbus.if |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if
index 1a1becd..948aa56 100644
--- a/policy/modules/services/dbus.if
+++ b/policy/modules/services/dbus.if
@@ -151,6 +151,8 @@ template(`dbus_role_template',`
 
 	userdom_read_user_home_content_files($1_dbusd_t)
 
+	xdg_read_data_home($1_dbusd_t)
+
 	ifdef(`hide_broken_symptoms', `
 		dontaudit $3 $1_dbusd_t:netlink_selinux_socket { read write };
 	')
-- 
1.7.3.4

  parent reply	other threads:[~2011-09-04 12:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04 12:12 [refpolicy] [PATCH/RFC 0/4] Introduce XDG type definitions Sven Vermeulen
2011-09-04 12:13 ` [refpolicy] [PATCH/RFC 1/4] Introduce xdg types Sven Vermeulen
2011-09-14 12:24   ` Christopher J. PeBenito
2011-09-04 12:13 ` [refpolicy] [PATCH/RFC 2/4] Allow users to manage their xdg_* locations Sven Vermeulen
2011-09-04 12:14 ` Sven Vermeulen [this message]
2011-09-04 12:14 ` [refpolicy] [PATCH/RFC 4/4] Allow mozilla to read xdg data Sven Vermeulen

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=20110904121406.GD11390@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --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.