selinux-policy/policy/modules/services/consolekit.if

60 lines
1.2 KiB
Plaintext
Raw Normal View History

## <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;
')
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)
files_search_pids($1)
')