Chris PeBenito e2b84e
Chris PeBenito cfcf50
policy_module(oddjob, 1.5.0)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
# Declarations
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
Chris PeBenito e2b84e
type oddjob_t;
Chris PeBenito e2b84e
type oddjob_exec_t;
Chris PeBenito e2b84e
domain_type(oddjob_t)
Chris PeBenito e2b84e
init_daemon_domain(oddjob_t, oddjob_exec_t)
Chris PeBenito d6d16b
domain_subj_id_change_exemption(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
type oddjob_mkhomedir_t;
Chris PeBenito e2b84e
type oddjob_mkhomedir_exec_t;
Chris PeBenito e2b84e
domain_type(oddjob_mkhomedir_t)
Chris PeBenito e2b84e
init_daemon_domain(oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t)
Chris PeBenito e2b84e
oddjob_system_entry(oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
# pid files
Chris PeBenito e2b84e
type oddjob_var_run_t;
Chris PeBenito e2b84e
files_pid_file(oddjob_var_run_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
# oddjob local policy
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
Chris PeBenito f6a590
allow oddjob_t self:capability setgid;
Chris PeBenito d6d16b
allow oddjob_t self:process { setexec signal };
Chris PeBenito e2b84e
allow oddjob_t self:fifo_file { read write };
Chris PeBenito e2b84e
allow oddjob_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito e2b84e
Chris PeBenito 0bfccd
manage_files_pattern(oddjob_t, oddjob_var_run_t, oddjob_var_run_t)
Chris PeBenito 0bfccd
manage_sock_files_pattern(oddjob_t, oddjob_var_run_t, oddjob_var_run_t)
Chris PeBenito 0bfccd
files_pid_filetrans(oddjob_t, oddjob_var_run_t, { file sock_file })
Chris PeBenito e2b84e
Chris PeBenito e2b84e
kernel_read_system_state(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito d9845a
corecmd_exec_bin(oddjob_t)
Chris PeBenito e2b84e
corecmd_exec_shell(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito d9845a
mcs_process_set_categories(oddjob_t)
Chris PeBenito d9845a
Chris PeBenito e2b84e
selinux_compute_create_context(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
files_read_etc_files(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
libs_use_ld_so(oddjob_t)
Chris PeBenito e2b84e
libs_use_shared_libs(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
miscfiles_read_localization(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
locallogin_dontaudit_use_fds(oddjob_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
optional_policy(`
Chris PeBenito 0bfccd
	dbus_system_bus_client_template(oddjob, oddjob_t)
Chris PeBenito e2b84e
	dbus_connect_system_bus(oddjob_t)
Chris PeBenito e2b84e
')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
optional_policy(`
Chris PeBenito e2b84e
	unconfined_domtrans(oddjob_t)
Chris PeBenito e2b84e
')
Chris PeBenito e2b84e
Chris PeBenito e2b84e
########################################
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
# oddjob_mkhomedir local policy
Chris PeBenito e2b84e
#
Chris PeBenito e2b84e
Chris PeBenito e2b84e
allow oddjob_mkhomedir_t self:fifo_file { read write };
Chris PeBenito e2b84e
allow oddjob_mkhomedir_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito e2b84e
Chris PeBenito e2b84e
files_read_etc_files(oddjob_mkhomedir_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
libs_use_ld_so(oddjob_mkhomedir_t)
Chris PeBenito e2b84e
libs_use_shared_libs(oddjob_mkhomedir_t)
Chris PeBenito e2b84e
Chris PeBenito e2b84e
miscfiles_read_localization(oddjob_mkhomedir_t)
Chris PeBenito d9845a
Chris PeBenito e9c6cd
staff_manage_home_dirs(oddjob_mkhomedir_t)
Chris PeBenito e9c6cd
Chris PeBenito d9845a
# Add/remove user home directories
Chris PeBenito e9c6cd
unprivuser_home_filetrans_home_dir(oddjob_mkhomedir_t)
Chris PeBenito e9c6cd
unprivuser_manage_home_content_dirs(oddjob_mkhomedir_t)
Chris PeBenito e9c6cd
unprivuser_manage_home_content_files(oddjob_mkhomedir_t)
Chris PeBenito e9c6cd
unprivuser_manage_home_dirs(oddjob_mkhomedir_t)
Chris PeBenito 0bfccd
unprivuser_home_dir_filetrans_home_content(oddjob_mkhomedir_t, notdevfile_class_set)
Chris PeBenito e9c6cd