|
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">
|
|
Dominick Grift |
dcf874 |
## <summary>
|
|
Chris PeBenito |
c017ee |
## Domain allowed to transition.
|
|
Dominick Grift |
dcf874 |
## </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 |
f3890b |
## Execute sssd server in the sssd domain.
|
|
Chris PeBenito |
f3890b |
## </summary>
|
|
Chris PeBenito |
f3890b |
## <param name="domain">
|
|
Chris PeBenito |
f3890b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
f3890b |
## </summary>
|
|
Chris PeBenito |
f3890b |
## </param>
|
|
Chris PeBenito |
f3890b |
#
|
|
Chris PeBenito |
f3890b |
interface(`sssd_initrc_domtrans',`
|
|
Chris PeBenito |
f3890b |
gen_require(`
|
|
Chris PeBenito |
f3890b |
type sssd_initrc_exec_t;
|
|
Chris PeBenito |
f3890b |
')
|
|
Chris PeBenito |
f3890b |
|
|
Chris PeBenito |
f3890b |
init_labeled_script_domtrans($1, sssd_initrc_exec_t)
|
|
Chris PeBenito |
f3890b |
')
|
|
Chris PeBenito |
f3890b |
|
|
Chris PeBenito |
f3890b |
########################################
|
|
Chris PeBenito |
f3890b |
## <summary>
|
|
Chris PeBenito |
2b93b8 |
## Read sssd public files.
|
|
Chris PeBenito |
2b93b8 |
## </summary>
|
|
Chris PeBenito |
2b93b8 |
## <param name="domain">
|
|
Chris PeBenito |
2b93b8 |
## <summary>
|
|
Chris PeBenito |
2b93b8 |
## Domain allowed access.
|
|
Chris PeBenito |
2b93b8 |
## </summary>
|
|
Chris PeBenito |
2b93b8 |
## </param>
|
|
Chris PeBenito |
2b93b8 |
#
|
|
Chris PeBenito |
2b93b8 |
interface(`sssd_read_public_files',`
|
|
Chris PeBenito |
2b93b8 |
gen_require(`
|
|
Chris PeBenito |
2b93b8 |
type sssd_public_t;
|
|
Chris PeBenito |
2b93b8 |
')
|
|
Chris PeBenito |
2b93b8 |
|
|
Chris PeBenito |
2b93b8 |
sssd_search_lib($1)
|
|
Chris PeBenito |
2b93b8 |
read_files_pattern($1, sssd_public_t, sssd_public_t)
|
|
Chris PeBenito |
2b93b8 |
')
|
|
Chris PeBenito |
2b93b8 |
|
|
Chris PeBenito |
2b93b8 |
########################################
|
|
Chris PeBenito |
2b93b8 |
## <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 |
|
|
Dominick Grift |
f92662 |
files_search_pids($1)
|
|
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 |
2b93b8 |
## Do not audit attempts to search sssd lib directories.
|
|
Chris PeBenito |
2b93b8 |
## </summary>
|
|
Chris PeBenito |
2b93b8 |
## <param name="domain">
|
|
Chris PeBenito |
2b93b8 |
## <summary>
|
|
Chris PeBenito |
2b93b8 |
## Domain to not audit.
|
|
Chris PeBenito |
2b93b8 |
## </summary>
|
|
Chris PeBenito |
2b93b8 |
## </param>
|
|
Chris PeBenito |
2b93b8 |
#
|
|
Chris PeBenito |
2b93b8 |
interface(`sssd_dontaudit_search_lib',`
|
|
Chris PeBenito |
2b93b8 |
gen_require(`
|
|
Chris PeBenito |
2b93b8 |
type sssd_var_lib_t;
|
|
Chris PeBenito |
2b93b8 |
')
|
|
Chris PeBenito |
2b93b8 |
|
|
Chris PeBenito |
2b93b8 |
dontaudit $1 sssd_var_lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
2b93b8 |
')
|
|
Chris PeBenito |
2b93b8 |
|
|
Chris PeBenito |
2b93b8 |
########################################
|
|
Chris PeBenito |
2b93b8 |
## <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 |
f3890b |
## 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 |
## <rolecap/>
|
|
Chris PeBenito |
c017ee |
#
|
|
Chris PeBenito |
c017ee |
interface(`sssd_admin',`
|
|
Chris PeBenito |
c017ee |
gen_require(`
|
|
Dominick Grift |
2f94f4 |
type sssd_t, sssd_public_t, sssd_initrc_exec_t;
|
|
Chris PeBenito |
c017ee |
')
|
|
Chris PeBenito |
c017ee |
|
|
Dominick Grift |
819518 |
allow $1 sssd_t:process { ptrace signal_perms };
|
|
Dominick Grift |
2de234 |
ps_process_pattern($1, sssd_t)
|
|
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 |
2b93b8 |
|
|
Chris PeBenito |
2b93b8 |
admin_pattern($1, sssd_public_t)
|
|
Chris PeBenito |
c017ee |
')
|