## Desktop messaging bus
########################################
##
## Allow a application domain to be started
## by the session dbus
##
##
##
## The prefix of the user role (e.g., user
## is the prefix for user_r).
##
##
##
##
## Type to be used as a domain.
##
##
##
##
## Type of the program to be used as an
## entry point to this domain.
##
##
#
interface(`dbus_session_domain', `
gen_require(`
type $1_dbusd_t;
')
domtrans_pattern($1_dbusd_t, $3, $2)
dbus_session_bus_client($2)
dbus_connect_session_bus($2)
optional_policy(`
# If unconfined_t wants to start a dbus_session_domain.
# unconfined_dbusd_t should get implemented for F13.
# Can just remove this when it is.
unconfined_dbus_connect($2)
')
')