selinux-policy/policy/modules/services/consolekit.if
Dan Walsh b45aaab97c Allow sudo to send signals to any domains the user could have transitioned to.
Passwd in single user mode needs to talk to console_device_t
Mozilla_plugin_t needs to connect to web ports, needs to write to video device, and read alsa_home_t alsa setsup pulseaudio
locate tried to read a symbolic link, will dontaudit
New labels for telepathy-sunshine content in homedir
Google is storing other binaries under /opt/google/talkplugin
bluetooth/kernel is creating unlabeled_t socket that I will allow it to use until kernel fixes bug
Add boolean for unconfined_t transition to mozilla_plugin_t and telepathy domains, turned off in F14 on in F15
modemmanger and bluetooth send dbus messages to devicekit_power
Samba needs to getquota on filesystems labeld samba_share_t
2010-10-01 11:58:15 -04:00

135 lines
2.6 KiB
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;
')
########################################
## <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;
')
########################################
## <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)
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;
')
files_search_pids($1)
read_files_pattern($1, consolekit_var_run_t, consolekit_var_run_t)
')
########################################
## <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)
')