All pastes #909688 Raw Edit

proposed userdom_dbus_chat inter

public text v1 · immutable
·published 2008-02-19 12:19 UTC
rendered paste body
########################################
## <summary>
##	Send and receive messages from
##	userdomains over dbus.
## </summary>
## <desc>
##	<p>
##	Send and receive messages from
##	user domains over dbus.
##	</p>
## </desc>
## <param name="userdomain_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>
#
template(`userdom_dbus_chat',`
	gen_require(`
		attribute $1_type;
		class dbus send_msg;
	')

	allow $2 $1_type:dbus send_msg;
	allow $1_type $2:dbus send_msg;
')