Chris PeBenito c017ee
Chris PeBenito c017ee
policy_module(sssd, 1.0.0)
Chris PeBenito c017ee
Chris PeBenito c017ee
########################################
Chris PeBenito c017ee
#
Chris PeBenito c017ee
# Declarations
Chris PeBenito c017ee
#
Chris PeBenito c017ee
Chris PeBenito c017ee
type sssd_t;
Chris PeBenito c017ee
type sssd_exec_t;
Chris PeBenito c017ee
init_daemon_domain(sssd_t, sssd_exec_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
type sssd_initrc_exec_t;
Chris PeBenito c017ee
init_script_file(sssd_initrc_exec_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
type sssd_var_lib_t;
Chris PeBenito c017ee
files_type(sssd_var_lib_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
type sssd_var_run_t;
Chris PeBenito c017ee
files_pid_file(sssd_var_run_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
########################################
Chris PeBenito c017ee
#
Chris PeBenito c017ee
# sssd local policy
Chris PeBenito c017ee
#
Chris PeBenito c017ee
allow sssd_t self:capability { sys_nice setuid };
Chris PeBenito c017ee
allow sssd_t self:process { setsched signal getsched };
Chris PeBenito c017ee
allow sssd_t self:fifo_file rw_file_perms;
Chris PeBenito c017ee
allow sssd_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito c017ee
Chris PeBenito c017ee
manage_dirs_pattern(sssd_t, sssd_var_lib_t, sssd_var_lib_t)
Chris PeBenito c017ee
manage_files_pattern(sssd_t, sssd_var_lib_t, sssd_var_lib_t)
Chris PeBenito c017ee
manage_sock_files_pattern(sssd_t, sssd_var_lib_t, sssd_var_lib_t)
Chris PeBenito c017ee
files_var_lib_filetrans(sssd_t, sssd_var_lib_t, { file dir } )
Chris PeBenito c017ee
Chris PeBenito c017ee
manage_dirs_pattern(sssd_t, sssd_var_run_t, sssd_var_run_t)
Chris PeBenito c017ee
manage_files_pattern(sssd_t, sssd_var_run_t, sssd_var_run_t)
Chris PeBenito c017ee
files_pid_filetrans(sssd_t, sssd_var_run_t, { file dir })
Chris PeBenito c017ee
Chris PeBenito c017ee
kernel_read_system_state(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
corecmd_exec_bin(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
dev_read_urand(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
files_list_tmp(sssd_t)
Chris PeBenito c017ee
files_read_etc_files(sssd_t)
Chris PeBenito c017ee
files_read_usr_files(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
auth_use_nsswitch(sssd_t)
Chris PeBenito c017ee
auth_domtrans_chk_passwd(sssd_t)
Chris PeBenito c017ee
auth_domtrans_upd_passwd(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
init_read_utmp(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
logging_send_syslog_msg(sssd_t)
Chris PeBenito c017ee
logging_send_audit_msgs(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
miscfiles_read_localization(sssd_t)
Chris PeBenito c017ee
Chris PeBenito c017ee
optional_policy(`
Chris PeBenito c017ee
	dbus_system_bus_client(sssd_t)
Chris PeBenito c017ee
	dbus_connect_system_bus(sssd_t)
Chris PeBenito c017ee
')