Chris PeBenito c224d9
## <summary>Framework for facilitating multiple user sessions on desktops.</summary>
Chris PeBenito c224d9
Chris PeBenito c224d9
########################################
Chris PeBenito c224d9
## <summary>
Chris PeBenito c224d9
##	Execute a domain transition to run consolekit.
Chris PeBenito c224d9
## </summary>
Chris PeBenito c224d9
## <param name="domain">
Chris PeBenito c224d9
## <summary>
Chris PeBenito c224d9
##	Domain allowed to transition.
Chris PeBenito c224d9
## </summary>
Chris PeBenito c224d9
## </param>
Chris PeBenito c224d9
#
Chris PeBenito c224d9
interface(`consolekit_domtrans',`
Chris PeBenito c224d9
	gen_require(`
Chris PeBenito c224d9
		type consolekit_t, consolekit_exec_t;
Chris PeBenito c224d9
	')
Chris PeBenito c224d9
Chris PeBenito 0bfccd
	domtrans_pattern($1, consolekit_exec_t, consolekit_t)
Chris PeBenito c224d9
')
Chris PeBenito c224d9
Chris PeBenito c224d9
########################################
Chris PeBenito c224d9
## <summary>
Chris PeBenito c224d9
##	Send and receive messages from
Chris PeBenito c224d9
##	consolekit over dbus.
Chris PeBenito c224d9
## </summary>
Chris PeBenito c224d9
## <param name="domain">
Chris PeBenito c224d9
##	<summary>
Chris PeBenito c224d9
##	Domain allowed access.
Chris PeBenito c224d9
##	</summary>
Chris PeBenito c224d9
## </param>
Chris PeBenito c224d9
#
Chris PeBenito c224d9
interface(`consolekit_dbus_chat',`
Chris PeBenito c224d9
	gen_require(`
Chris PeBenito c224d9
		type consolekit_t;
Chris PeBenito c224d9
		class dbus send_msg;
Chris PeBenito c224d9
	')
Chris PeBenito c224d9
Chris PeBenito c224d9
	allow $1 consolekit_t:dbus send_msg;
Chris PeBenito c224d9
	allow consolekit_t $1:dbus send_msg;
Chris PeBenito c224d9
')
Chris PeBenito 80348b
Chris PeBenito 80348b
########################################
Chris PeBenito 80348b
## <summary>
Chris PeBenito 80348b
##	Read consolekit log files.
Chris PeBenito 80348b
## </summary>
Chris PeBenito 80348b
## <param name="domain">
Chris PeBenito 80348b
##	<summary>
Chris PeBenito 80348b
##	Domain allowed access.
Chris PeBenito 80348b
##	</summary>
Chris PeBenito 80348b
## </param>
Chris PeBenito 80348b
#
Chris PeBenito 80348b
interface(`consolekit_read_log',`
Chris PeBenito 80348b
	gen_require(`
Chris PeBenito 80348b
		type consolekit_log_t;
Chris PeBenito 80348b
	')
Chris PeBenito 80348b
Chris PeBenito 80348b
	read_files_pattern($1, consolekit_log_t, consolekit_log_t)
Chris PeBenito 80348b
	files_search_pids($1)
Chris PeBenito 80348b
')