|
Chris PeBenito |
c017ee |
## <summary>System Security Services Daemon</summary>
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Execute a domain transition to run sssd.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed to transition.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_domtrans',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_t, sssd_exec_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
domtrans_pattern($1, sssd_exec_t, sssd_t)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Read sssd PID files.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_read_pid_files',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_var_run_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
files_search_pids($1)
|
|
Chris PeBenito |
c017ee |
allow $1 sssd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Manage sssd var_run files.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_manage_pids',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_var_run_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
manage_dirs_pattern($1, sssd_var_run_t, sssd_var_run_t)
|
|
Chris PeBenito |
c017ee |
manage_files_pattern($1, sssd_var_run_t, sssd_var_run_t)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Search sssd lib directories.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_search_lib',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_var_lib_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
allow $1 sssd_var_lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
c017ee |
files_search_var_lib($1)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Read sssd lib files.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_read_lib_files',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_var_lib_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
files_search_var_lib($1)
|
|
Chris PeBenito |
c017ee |
read_files_pattern($1, sssd_var_lib_t, sssd_var_lib_t)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Create, read, write, and delete
|
|
Chris PeBenito |
c017ee |
## sssd lib files.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_manage_lib_files',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_var_lib_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
files_search_var_lib($1)
|
|
Chris PeBenito |
c017ee |
manage_files_pattern($1, sssd_var_lib_t, sssd_var_lib_t)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Send and receive messages from
|
|
Chris PeBenito |
c017ee |
## sssd over dbus.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_dbus_chat',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_t;
|
|
Chris PeBenito |
c017ee |
class dbus send_msg;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
allow $1 sssd_t:dbus send_msg;
|
|
Chris PeBenito |
c017ee |
allow sssd_t $1:dbus send_msg;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Connect to sssd over an unix stream socket.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_stream_connect',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_t, sssd_var_lib_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
files_search_pids($1)
|
|
Chris PeBenito |
c017ee |
stream_connect_pattern($1, sssd_var_lib_t, sssd_var_lib_t, sssd_t)
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
########################################
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## All of the rules required to administrate
|
|
Chris PeBenito |
c017ee |
## an sssd environment
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## <param name="domain">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed access.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
## <param name="role">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## The role to be allowed to manage the sssd domain.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
## <param name="terminal">
|
|
Chris PeBenito |
c017ee |
## <summary>
|
|
Chris PeBenito |
c017ee |
## The type of the user terminal.
|
|
Chris PeBenito |
c017ee |
## </summary>
|
|
Chris PeBenito |
c017ee |
## </param>
|
|
Chris PeBenito |
c017ee |
## <rolecap/>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_admin',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
allow $1 sssd_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
c017ee |
read_files_pattern($1, sssd_t, sssd_t)
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Chris PeBenito |
c017ee |
type sssd_initrc_exec_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
# Allow sssd_t to restart the apache service
|
|
Chris PeBenito |
c017ee |
sssd_initrc_domtrans($1)
|
|
Chris PeBenito |
c017ee |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
c017ee |
role_transition $2 sssd_initrc_exec_t system_r;
|
|
Chris PeBenito |
c017ee |
allow $2 system_r;
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
sssd_manage_pids($1)
|
|
Chris PeBenito |
c017ee |
|
|
Chris PeBenito |
c017ee |
sssd_manage_lib_files($1)
|
|
Chris PeBenito |
c017ee |
')
|