Chris PeBenito e2b84e
Chris PeBenito 6c53a1
policy_module(oddjob,1.3.2)
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 c0868a
manage_files_pattern(oddjob_t,oddjob_var_run_t,oddjob_var_run_t)
Chris PeBenito c0868a
manage_sock_files_pattern(oddjob_t,oddjob_var_run_t,oddjob_var_run_t)
Chris PeBenito e2b84e
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 e2b84e
	dbus_system_bus_client_template(oddjob,oddjob_t)
Chris PeBenito e2b84e
	dbus_send_system_bus(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 d9845a
# Add/remove user home directories
Chris PeBenito d9845a
userdom_home_filetrans_generic_user_home_dir(oddjob_mkhomedir_t)
Chris PeBenito d9845a
userdom_manage_generic_user_home_content_dirs(oddjob_mkhomedir_t)
Chris PeBenito d9845a
userdom_manage_generic_user_home_content_files(oddjob_mkhomedir_t)
Chris PeBenito d9845a
userdom_manage_generic_user_home_dirs(oddjob_mkhomedir_t)
Chris PeBenito d9845a
userdom_manage_staff_home_dirs(oddjob_mkhomedir_t)
Chris PeBenito d9845a
userdom_generic_user_home_dir_filetrans_generic_user_home_content(oddjob_mkhomedir_t,notdevfile_class_set)