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">
Dominick Grift c5eae5
##	<summary>
Chris PeBenito c224d9
##	Domain allowed to transition.
Dominick Grift c5eae5
##	</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>
Dan Walsh b45aaa
##	Dontaudit attempts to read consolekit log files.
Dan Walsh b45aaa
## </summary>
Dan Walsh b45aaa
## <param name="domain">
Dan Walsh b45aaa
##	<summary>
Dan Walsh b45aaa
##	Domain to not audit.
Dan Walsh b45aaa
##	</summary>
Dan Walsh b45aaa
## </param>
Dan Walsh b45aaa
#
Dan Walsh b45aaa
interface(`consolekit_dontaudit_read_log',`
Dan Walsh b45aaa
	gen_require(`
Dan Walsh b45aaa
		type consolekit_log_t;
Dan Walsh b45aaa
	')
Dan Walsh b45aaa
Dan Walsh b45aaa
	dontaudit $1 consolekit_log_t:file read_file_perms;
Dan Walsh b45aaa
')
Dan Walsh b45aaa
Dan Walsh b45aaa
########################################
Dan Walsh b45aaa
## <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 a3108c
	logging_search_logs($1)
Chris PeBenito a3108c
')
Chris PeBenito a3108c
Chris PeBenito a3108c
########################################
Chris PeBenito a3108c
## <summary>
Chris PeBenito a3108c
##	Manage consolekit log files.
Chris PeBenito a3108c
## </summary>
Chris PeBenito a3108c
## <param name="domain">
Chris PeBenito a3108c
##	<summary>
Chris PeBenito a3108c
##	Domain allowed access.
Chris PeBenito a3108c
##	</summary>
Chris PeBenito a3108c
## </param>
Chris PeBenito a3108c
#
Chris PeBenito a3108c
interface(`consolekit_manage_log',`
Chris PeBenito a3108c
	gen_require(`
Chris PeBenito a3108c
		type consolekit_log_t;
Chris PeBenito a3108c
	')
Chris PeBenito a3108c
Chris PeBenito a3108c
	manage_files_pattern($1, consolekit_log_t, consolekit_log_t)
Chris PeBenito a3108c
	files_search_pids($1)
Chris PeBenito a3108c
')
Chris PeBenito a3108c
Chris PeBenito a3108c
########################################
Chris PeBenito a3108c
## <summary>
Chris PeBenito a3108c
##	Read consolekit PID files.
Chris PeBenito a3108c
## </summary>
Chris PeBenito a3108c
## <param name="domain">
Chris PeBenito a3108c
##	<summary>
Chris PeBenito a3108c
##	Domain allowed access.
Chris PeBenito a3108c
##	</summary>
Chris PeBenito a3108c
## </param>
Chris PeBenito a3108c
#
Chris PeBenito a3108c
interface(`consolekit_read_pid_files',`
Chris PeBenito a3108c
	gen_require(`
Chris PeBenito a3108c
		type consolekit_var_run_t;
Chris PeBenito a3108c
	')
Chris PeBenito a3108c
Chris PeBenito 80348b
	files_search_pids($1)
Chris PeBenito a3108c
	read_files_pattern($1, consolekit_var_run_t, consolekit_var_run_t)
Chris PeBenito 80348b
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
########################################
Dan Walsh 3eaa99
## <summary>
Dan Walsh 3eaa99
##	List consolekit PID files.
Dan Walsh 3eaa99
## </summary>
Dan Walsh 3eaa99
## <param name="domain">
Dan Walsh 3eaa99
##	<summary>
Dan Walsh 3eaa99
##	Domain allowed access.
Dan Walsh 3eaa99
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
interface(`consolekit_list_pid_files',`
Dan Walsh 3eaa99
	gen_require(`
Dan Walsh 3eaa99
		type consolekit_var_run_t;
Dan Walsh 3eaa99
	')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
	files_search_pids($1)
Dan Walsh 3eaa99
	list_dirs_pattern($1, consolekit_var_run_t, consolekit_var_run_t)
Dan Walsh 3eaa99
')