All of lore.kernel.org
 help / color / mirror / Atom feed
From: domg472@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [Dbus 1/1] Various fixes.
Date: Fri, 3 Sep 2010 12:01:56 +0200	[thread overview]
Message-ID: <20100903100152.GA21698@localhost.localdomain> (raw)

Removed some unused dbus interfaces that really were too coarse anyway.
Renamed dbus_connect_session_bus to dbus_rename_all_session_bus for pulseaudio.
This interface should really changed into something more specific.

Signed-off-by: Dominick Grift <domg472@gmail.com>
---
:100644 100644 5c2680c... 333cf99... M	policy/modules/apps/pulseaudio.te
:100644 100644 39e901a... 4d16a6b... M	policy/modules/services/dbus.if
 policy/modules/apps/pulseaudio.te |    2 +-
 policy/modules/services/dbus.if   |   51 +-----------------------------------
 2 files changed, 3 insertions(+), 50 deletions(-)

diff --git a/policy/modules/apps/pulseaudio.te b/policy/modules/apps/pulseaudio.te
index 5c2680c..333cf99 100644
--- a/policy/modules/apps/pulseaudio.te
+++ b/policy/modules/apps/pulseaudio.te
@@ -107,7 +107,7 @@ optional_policy(`
 	dbus_system_domain(pulseaudio_t, pulseaudio_exec_t)
 	dbus_system_bus_client(pulseaudio_t)
 	dbus_session_bus_client(pulseaudio_t)
-	dbus_connect_session_bus(pulseaudio_t)
+	dbus_connect_all_session_bus(pulseaudio_t)
 
 	optional_policy(`
 		consolekit_dbus_chat(pulseaudio_t)
diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if
index 39e901a..4d16a6b 100644
--- a/policy/modules/services/dbus.if
+++ b/policy/modules/services/dbus.if
@@ -221,25 +221,6 @@ interface(`dbus_session_bus_client',`
 
 ########################################
 ## <summary>
-##	Send a message the session DBUS.
-## </summary>
-## <param name="domain">
-##	<summary>
-##	Domain allowed access.
-##	</summary>
-## </param>
-#
-interface(`dbus_send_session_bus',`
-	gen_require(`
-		attribute session_bus_type;
-		class dbus send_msg;
-	')
-
-	allow $1 session_bus_type:dbus send_msg;
-')
-
-########################################
-## <summary>
 ##	Read dbus configuration.
 ## </summary>
 ## <param name="domain">
@@ -298,7 +279,7 @@ interface(`dbus_manage_lib_files',`
 
 ########################################
 ## <summary>
-##	Connect to the system DBUS
+##	Connect to all session DBUS
 ##	for service (acquire_svc).
 ## </summary>
 ## <param name="domain">
@@ -307,7 +288,7 @@ interface(`dbus_manage_lib_files',`
 ##	</summary>
 ## </param>
 #
-interface(`dbus_connect_session_bus',`
+interface(`dbus_connect_all_session_bus',`
 	gen_require(`
 		attribute session_bus_type;
 		class dbus acquire_svc;
@@ -318,34 +299,6 @@ interface(`dbus_connect_session_bus',`
 
 ########################################
 ## <summary>
-##	Allow a application domain to be started
-##	by the session dbus.
-## </summary>
-## <param name="domain">
-##	<summary>
-##	Type to be used as a domain.
-##	</summary>
-## </param>
-## <param name="entry_point">
-##	<summary>
-##	Type of the program to be used as an
-##	entry point to this domain.
-##	</summary>
-## </param>
-#
-interface(`dbus_session_domain',`
-	gen_require(`
-		attribute session_bus_type;
-	')
-
-	domtrans_pattern(session_bus_type, $2, $1)
-
-	dbus_session_bus_client($1)
-	dbus_connect_session_bus($1)
-')
-
-########################################
-## <summary>
 ##	Connect to the system DBUS
 ##	for service (acquire_svc).
 ## </summary>
-- 
1.7.2.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100903/3d4758cc/attachment.bin 

             reply	other threads:[~2010-09-03 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 10:01 Dominick Grift [this message]
     [not found] ` <4C88CD86.7070603@tresys.com>
2010-09-09 12:16   ` [refpolicy] [Dbus 1/1] Various fixes Dominick Grift

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=20100903100152.GA21698@localhost.localdomain \
    --to=domg472@gmail.com \
    --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.