|
Chris PeBenito |
29af4c |
policy_module(cobbler, 1.1.0)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
########################################
|
|
Dominick Grift |
1031ee |
#
|
|
Dominick Grift |
1031ee |
# Cobbler personal declarations.
|
|
Dominick Grift |
1031ee |
#
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
## <desc>
|
|
Dominick Grift |
1031ee |
##
|
|
Dominick Grift |
1031ee |
## Allow Cobbler to modify public files
|
|
Dominick Grift |
1031ee |
## used for public file transfer services.
|
|
Dominick Grift |
1031ee |
##
|
|
Dominick Grift |
1031ee |
## </desc>
|
|
Dominick Grift |
1031ee |
gen_tunable(cobbler_anon_write, false)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
type cobblerd_t;
|
|
Dominick Grift |
1031ee |
type cobblerd_exec_t;
|
|
Dominick Grift |
1031ee |
init_daemon_domain(cobblerd_t, cobblerd_exec_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
type cobblerd_initrc_exec_t;
|
|
Dominick Grift |
1031ee |
init_script_file(cobblerd_initrc_exec_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
type cobbler_etc_t;
|
|
Dominick Grift |
1031ee |
files_config_file(cobbler_etc_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
type cobbler_var_log_t;
|
|
Dominick Grift |
1031ee |
logging_log_file(cobbler_var_log_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
type cobbler_var_lib_t;
|
|
Dominick Grift |
1031ee |
files_type(cobbler_var_lib_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
########################################
|
|
Dominick Grift |
1031ee |
#
|
|
Dominick Grift |
1031ee |
# Cobbler personal policy.
|
|
Dominick Grift |
1031ee |
#
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
allow cobblerd_t self:capability { chown dac_override fowner sys_nice };
|
|
Dominick Grift |
1031ee |
allow cobblerd_t self:process { getsched setsched signal };
|
|
Dominick Grift |
1031ee |
allow cobblerd_t self:fifo_file rw_fifo_file_perms;
|
|
Dominick Grift |
1031ee |
allow cobblerd_t self:tcp_socket create_stream_socket_perms;
|
|
Dominick Grift |
1031ee |
|
|
Jeremy Solt |
a2524c |
list_dirs_pattern(cobblerd_t, cobbler_etc_t, cobbler_etc_t)
|
|
Dominick Grift |
1031ee |
read_files_pattern(cobblerd_t, cobbler_etc_t, cobbler_etc_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
manage_dirs_pattern(cobblerd_t, cobbler_var_lib_t, cobbler_var_lib_t)
|
|
Dominick Grift |
1031ee |
manage_files_pattern(cobblerd_t, cobbler_var_lib_t, cobbler_var_lib_t)
|
|
Dominick Grift |
1031ee |
files_var_lib_filetrans(cobblerd_t, cobbler_var_lib_t, { dir file })
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
append_files_pattern(cobblerd_t, cobbler_var_log_t, cobbler_var_log_t)
|
|
Dominick Grift |
1031ee |
create_files_pattern(cobblerd_t, cobbler_var_log_t, cobbler_var_log_t)
|
|
Dominick Grift |
1031ee |
read_files_pattern(cobblerd_t, cobbler_var_log_t, cobbler_var_log_t)
|
|
Dominick Grift |
1031ee |
setattr_files_pattern(cobblerd_t, cobbler_var_log_t, cobbler_var_log_t)
|
|
Dominick Grift |
1031ee |
logging_log_filetrans(cobblerd_t, cobbler_var_log_t, file)
|
|
Dominick Grift |
1031ee |
|
|
Chris PeBenito |
27eab8 |
kernel_read_system_state(cobblerd_t)
|
|
Chris PeBenito |
27eab8 |
|
|
Dominick Grift |
1031ee |
corecmd_exec_bin(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corecmd_exec_shell(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
corenet_all_recvfrom_netlabel(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_all_recvfrom_unlabeled(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_sendrecv_cobbler_server_packets(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_tcp_bind_cobbler_port(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_tcp_bind_generic_node(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_tcp_sendrecv_generic_if(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_tcp_sendrecv_generic_node(cobblerd_t)
|
|
Dominick Grift |
1031ee |
corenet_tcp_sendrecv_generic_port(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
dev_read_urand(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
files_read_usr_files(cobblerd_t)
|
|
Dominick Grift |
1031ee |
files_list_boot(cobblerd_t)
|
|
Dominick Grift |
1031ee |
files_list_tmp(cobblerd_t)
|
|
Chris PeBenito |
27afb9 |
# read /etc/nsswitch.conf
|
|
Chris PeBenito |
27afb9 |
files_read_etc_files(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
miscfiles_read_localization(cobblerd_t)
|
|
Dominick Grift |
1031ee |
miscfiles_read_public_files(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
sysnet_read_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
sysnet_rw_dhcp_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
sysnet_write_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
tunable_policy(`cobbler_anon_write',`
|
|
Dominick Grift |
1031ee |
miscfiles_manage_public_files(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Dominick Grift |
1031ee |
bind_read_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
bind_write_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
bind_domtrans_ndc(cobblerd_t)
|
|
Dominick Grift |
1031ee |
bind_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
bind_initrc_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
bind_manage_zone(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Dominick Grift |
1031ee |
dhcpd_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
dhcpd_initrc_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Dominick Grift |
1031ee |
dnsmasq_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
dnsmasq_initrc_domtrans(cobblerd_t)
|
|
Dominick Grift |
1031ee |
dnsmasq_write_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Dominick Grift |
1031ee |
rpm_exec(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Dominick Grift |
1031ee |
rsync_read_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
rsync_write_config(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
optional_policy(`
|
|
Chris PeBenito |
27eab8 |
tftp_manage_rw_content(cobblerd_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Jeremy Solt |
a2524c |
|
|
Jeremy Solt |
a2524c |
########################################
|
|
Jeremy Solt |
a2524c |
#
|
|
Jeremy Solt |
a2524c |
# Cobbler web local policy.
|
|
Jeremy Solt |
a2524c |
#
|
|
Jeremy Solt |
a2524c |
|
|
Jeremy Solt |
a2524c |
apache_content_template(cobbler)
|
|
Chris PeBenito |
aeb7a4 |
manage_dirs_pattern(cobblerd_t, httpd_cobbler_content_rw_t, httpd_cobbler_content_rw_t)
|
|
Chris PeBenito |
aeb7a4 |
manage_files_pattern(cobblerd_t, httpd_cobbler_content_rw_t, httpd_cobbler_content_rw_t)
|