|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
policy_module(prelude, 1.0.0)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
########################################
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
# Declarations
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_t;
|
|
Chris PeBenito |
cdbd09 |
type prelude_exec_t;
|
|
Chris PeBenito |
cdbd09 |
init_daemon_domain(prelude_t, prelude_exec_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_spool_t;
|
|
Chris PeBenito |
cdbd09 |
files_type(prelude_spool_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_var_run_t;
|
|
Chris PeBenito |
cdbd09 |
files_pid_file(prelude_var_run_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_var_lib_t;
|
|
Chris PeBenito |
cdbd09 |
files_type(prelude_var_lib_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_audisp_t;
|
|
Chris PeBenito |
cdbd09 |
type prelude_audisp_exec_t;
|
|
Chris PeBenito |
cdbd09 |
init_daemon_domain(prelude_audisp_t, prelude_audisp_exec_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
type prelude_audisp_var_run_t;
|
|
Chris PeBenito |
cdbd09 |
files_pid_file(prelude_audisp_var_run_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
########################################
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
# prelude local policy
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
allow prelude_t self:capability sys_tty_config;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
manage_dirs_pattern(prelude_t, prelude_spool_t, prelude_spool_t)
|
|
Chris PeBenito |
cdbd09 |
manage_files_pattern(prelude_t, prelude_spool_t, prelude_spool_t)
|
|
Chris PeBenito |
cdbd09 |
files_search_spool(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
manage_dirs_pattern(prelude_t, prelude_var_lib_t, prelude_var_lib_t)
|
|
Chris PeBenito |
cdbd09 |
manage_files_pattern(prelude_t, prelude_var_lib_t, prelude_var_lib_t)
|
|
Chris PeBenito |
cdbd09 |
files_search_var_lib(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
manage_files_pattern(prelude_t, prelude_var_run_t, prelude_var_run_t)
|
|
Chris PeBenito |
cdbd09 |
manage_sock_files_pattern(prelude_t, prelude_var_run_t, prelude_var_run_t)
|
|
Chris PeBenito |
cdbd09 |
files_pid_filetrans(prelude_t, prelude_var_run_t, file)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
corecmd_search_bin(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
corenet_all_recvfrom_unlabeled(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_all_recvfrom_netlabel(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_sendrecv_all_if(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_sendrecv_all_nodes(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_bind_all_nodes(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
dev_read_rand(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
dev_read_urand(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
# Init script handling
|
|
Chris PeBenito |
cdbd09 |
domain_use_interactive_fds(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
files_read_etc_files(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
files_read_usr_files(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
auth_use_nsswitch(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
libs_use_ld_so(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
libs_use_shared_libs(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
logging_send_audit_msgs(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
logging_send_syslog_msg(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
miscfiles_read_localization(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
optional_policy(`
|
|
Chris PeBenito |
cdbd09 |
mysql_search_db(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
mysql_stream_connect(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
')
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
optional_policy(`
|
|
Chris PeBenito |
cdbd09 |
postgresql_stream_connect(prelude_t)
|
|
Chris PeBenito |
cdbd09 |
')
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
########################################
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
# prelude_audisp local policy
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
allow prelude_audisp_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_audisp_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_audisp_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_audisp_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
allow prelude_audisp_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
manage_dirs_pattern(prelude_audisp_t, prelude_spool_t, prelude_spool_t)
|
|
Chris PeBenito |
cdbd09 |
manage_files_pattern(prelude_audisp_t, prelude_spool_t, prelude_spool_t)
|
|
Chris PeBenito |
cdbd09 |
files_search_spool(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
manage_sock_files_pattern(prelude_audisp_t, prelude_audisp_var_run_t, prelude_audisp_var_run_t)
|
|
Chris PeBenito |
cdbd09 |
files_pid_filetrans(prelude_audisp_t, prelude_audisp_var_run_t, sock_file)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
corecmd_search_bin(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
corenet_all_recvfrom_unlabeled(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_all_recvfrom_netlabel(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_sendrecv_all_if(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_sendrecv_all_nodes(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
corenet_tcp_bind_all_nodes(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
dev_read_rand(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
dev_read_urand(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
# Init script handling
|
|
Chris PeBenito |
cdbd09 |
domain_use_interactive_fds(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
files_read_etc_files(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
libs_use_ld_so(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
libs_use_shared_libs(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
logging_send_syslog_msg(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
miscfiles_read_localization(prelude_audisp_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
########################################
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
# prewikka_cgi Declarations
|
|
Chris PeBenito |
cdbd09 |
#
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
optional_policy(`
|
|
Chris PeBenito |
cdbd09 |
apache_content_template(prewikka)
|
|
Chris PeBenito |
cdbd09 |
files_read_etc_files(httpd_prewikka_script_t)
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
optional_policy(`
|
|
Chris PeBenito |
cdbd09 |
mysql_search_db(httpd_prewikka_script_t)
|
|
Chris PeBenito |
cdbd09 |
mysql_stream_connect(httpd_prewikka_script_t)
|
|
Chris PeBenito |
cdbd09 |
')
|
|
Chris PeBenito |
cdbd09 |
|
|
Chris PeBenito |
cdbd09 |
optional_policy(`
|
|
Chris PeBenito |
cdbd09 |
postgresql_stream_connect(httpd_prewikka_script_t)
|
|
Chris PeBenito |
cdbd09 |
')
|
|
Chris PeBenito |
cdbd09 |
')
|