c224d91c7b
This is a new policy for the User Switching capability coming in gnome. consolekit is a daemon that communicates with xdm_t and hal through dbus to change the ownership/access on certain devices when the login session changes from one user to another
41 lines
851 B
Plaintext
41 lines
851 B
Plaintext
## <summary>Framework for facilitating multiple user sessions on desktops.</summary>
|
|
|
|
########################################
|
|
## <summary>
|
|
## Execute a domain transition to run consolekit.
|
|
## </summary>
|
|
## <param name="domain">
|
|
## <summary>
|
|
## Domain allowed to transition.
|
|
## </summary>
|
|
## </param>
|
|
#
|
|
interface(`consolekit_domtrans',`
|
|
gen_require(`
|
|
type consolekit_t, consolekit_exec_t;
|
|
')
|
|
|
|
domtrans_pattern($1,consolekit_exec_t,consolekit_t)
|
|
')
|
|
|
|
########################################
|
|
## <summary>
|
|
## Send and receive messages from
|
|
## consolekit over dbus.
|
|
## </summary>
|
|
## <param name="domain">
|
|
## <summary>
|
|
## Domain allowed access.
|
|
## </summary>
|
|
## </param>
|
|
#
|
|
interface(`consolekit_dbus_chat',`
|
|
gen_require(`
|
|
type consolekit_t;
|
|
class dbus send_msg;
|
|
')
|
|
|
|
allow $1 consolekit_t:dbus send_msg;
|
|
allow consolekit_t $1:dbus send_msg;
|
|
')
|