|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
9570b2 |
policy_module(oddjob, 1.7.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 |
708a74 |
domain_obj_id_change_exemption(oddjob_t)
|
|
Chris PeBenito |
708a74 |
domain_role_change_exemption(oddjob_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 |
708a74 |
domain_obj_id_change_exemption(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
init_system_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 |
708a74 |
ifdef(`enable_mcs',`
|
|
Chris PeBenito |
708a74 |
init_ranged_daemon_domain(oddjob_t, oddjob_exec_t, s0 - mcs_systemhigh)
|
|
Chris PeBenito |
708a74 |
')
|
|
Chris PeBenito |
708a74 |
|
|
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 |
708a74 |
allow oddjob_mkhomedir_t self:capability { chown fowner fsetid dac_override };
|
|
Chris PeBenito |
708a74 |
allow oddjob_mkhomedir_t self:process setfscreate;
|
|
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 |
708a74 |
kernel_read_system_state(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
e2b84e |
files_read_etc_files(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
708a74 |
auth_use_nsswitch(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
708a74 |
logging_send_syslog_msg(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
e2b84e |
miscfiles_read_localization(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
708a74 |
selinux_get_fs_mount(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
selinux_validate_context(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
selinux_compute_access_vector(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
selinux_compute_create_context(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
selinux_compute_relabel_context(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
selinux_compute_user_contexts(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
708a74 |
seutil_read_config(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
seutil_read_file_contexts(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
seutil_read_default_contexts(oddjob_mkhomedir_t)
|
|
Chris PeBenito |
708a74 |
|
|
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 |
|