2007-03-19 18:01:15 +00:00
|
|
|
## <summary>Framework for facilitating multiple user sessions on desktops.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute a domain transition to run consolekit.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-17 06:54:12 +00:00
|
|
|
## <summary>
|
2007-03-19 18:01:15 +00:00
|
|
|
## Domain allowed to transition.
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-17 06:54:12 +00:00
|
|
|
## </summary>
|
2007-03-19 18:01:15 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_t, consolekit_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, consolekit_exec_t, consolekit_t)
|
2007-03-19 18:01:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <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;
|
|
|
|
')
|
2009-05-14 14:41:50 +00:00
|
|
|
|
2010-10-01 15:58:15 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Dontaudit attempts to read consolekit log files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_dontaudit_read_log',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_log_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 consolekit_log_t:file read_file_perms;
|
|
|
|
')
|
|
|
|
|
2009-05-14 14:41:50 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read consolekit log files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_read_log',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_log_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
read_files_pattern($1, consolekit_log_t, consolekit_log_t)
|
2010-05-03 14:21:48 +00:00
|
|
|
logging_search_logs($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Manage consolekit log files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_manage_log',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_log_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
manage_files_pattern($1, consolekit_log_t, consolekit_log_t)
|
|
|
|
files_search_pids($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read consolekit PID files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_read_pid_files',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_var_run_t;
|
|
|
|
')
|
|
|
|
|
2009-05-14 14:41:50 +00:00
|
|
|
files_search_pids($1)
|
2010-05-03 14:21:48 +00:00
|
|
|
read_files_pattern($1, consolekit_var_run_t, consolekit_var_run_t)
|
2009-05-14 14:41:50 +00:00
|
|
|
')
|
2010-08-26 13:41:21 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## List consolekit PID files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`consolekit_list_pid_files',`
|
|
|
|
gen_require(`
|
|
|
|
type consolekit_var_run_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_pids($1)
|
|
|
|
list_dirs_pattern($1, consolekit_var_run_t, consolekit_var_run_t)
|
|
|
|
')
|