Chris PeBenito e2b84e
Chris PeBenito 17ec8c
policy_module(oddjob, 1.6.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 0b36a2
allow oddjob_t self:fifo_file rw_fifo_file_perms;
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
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 296273
	dbus_system_bus_client(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 0b36a2
allow oddjob_mkhomedir_t self:fifo_file rw_fifo_file_perms;
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
miscfiles_read_localization(oddjob_mkhomedir_t)
Chris PeBenito d9845a
Chris PeBenito d9845a
# Add/remove user home directories
Chris PeBenito 296273
userdom_home_filetrans_user_home_dir(oddjob_mkhomedir_t)
Chris PeBenito 296273
userdom_manage_user_home_content_dirs(oddjob_mkhomedir_t)
Chris PeBenito 296273
userdom_manage_user_home_content_files(oddjob_mkhomedir_t)
Chris PeBenito 296273
userdom_manage_user_home_dirs(oddjob_mkhomedir_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans_user_home_content(oddjob_mkhomedir_t, notdevfile_class_set)
Chris PeBenito e9c6cd