selinux-policy/policy/modules/services/roundup.te

108 lines
2.6 KiB
Plaintext
Raw Normal View History

2006-01-11 20:03:21 +00:00
2006-10-18 19:25:27 +00:00
policy_module(roundup,1.1.0)
2006-01-11 20:03:21 +00:00
########################################
#
# Declarations
#
type roundup_t;
type roundup_exec_t;
init_daemon_domain(roundup_t,roundup_exec_t)
type roundup_var_run_t;
files_pid_file(roundup_var_run_t)
type roundup_var_lib_t;
files_type(roundup_var_lib_t)
########################################
#
# Local policy
#
allow roundup_t self:capability { setgid setuid };
dontaudit roundup_t self:capability sys_tty_config;
allow roundup_t self:process signal_perms;
allow roundup_t self:unix_stream_socket create_stream_socket_perms;
allow roundup_t self:tcp_socket create_stream_socket_perms;
allow roundup_t self:udp_socket create_socket_perms;
2006-12-12 20:08:08 +00:00
manage_files_pattern(roundup_t,roundup_var_lib_t,roundup_var_lib_t)
files_var_lib_filetrans(roundup_t,roundup_var_lib_t,file)
2006-01-11 20:03:21 +00:00
2006-12-12 20:08:08 +00:00
manage_files_pattern(roundup_t,roundup_var_run_t,roundup_var_run_t)
files_pid_filetrans(roundup_t,roundup_var_run_t,file)
kernel_read_kernel_sysctls(roundup_t)
2006-01-11 20:03:21 +00:00
kernel_list_proc(roundup_t)
kernel_read_proc_symlinks(roundup_t)
dev_read_sysfs(roundup_t)
# execute python
corecmd_exec_bin(roundup_t)
corenet_non_ipsec_sendrecv(roundup_t)
corenet_tcp_sendrecv_generic_if(roundup_t)
corenet_udp_sendrecv_generic_if(roundup_t)
corenet_raw_sendrecv_generic_if(roundup_t)
corenet_tcp_sendrecv_all_nodes(roundup_t)
corenet_udp_sendrecv_all_nodes(roundup_t)
corenet_raw_sendrecv_all_nodes(roundup_t)
corenet_tcp_sendrecv_all_ports(roundup_t)
corenet_udp_sendrecv_all_ports(roundup_t)
corenet_tcp_bind_all_nodes(roundup_t)
corenet_tcp_bind_http_cache_port(roundup_t)
corenet_tcp_connect_smtp_port(roundup_t)
2006-05-30 19:46:34 +00:00
corenet_sendrecv_http_cache_server_packets(roundup_t)
corenet_sendrecv_smtp_client_packets(roundup_t)
2006-01-11 20:03:21 +00:00
# /usr/share/mysql/charsets/Index.xml
dev_read_urand(roundup_t)
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(roundup_t)
2006-01-11 20:03:21 +00:00
# /usr/share/mysql/charsets/Index.xml
files_read_usr_files(roundup_t)
files_read_etc_files(roundup_t)
fs_getattr_all_fs(roundup_t)
fs_search_auto_mountpoints(roundup_t)
term_dontaudit_use_console(roundup_t)
init_use_fds(roundup_t)
2006-02-02 21:08:12 +00:00
init_use_script_ptys(roundup_t)
2006-01-11 20:03:21 +00:00
libs_use_ld_so(roundup_t)
libs_use_shared_libs(roundup_t)
logging_send_syslog_msg(roundup_t)
miscfiles_read_localization(roundup_t)
sysnet_read_config(roundup_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(roundup_t)
2006-02-21 18:40:44 +00:00
userdom_dontaudit_search_sysadm_home_dirs(roundup_t)
2006-01-11 20:03:21 +00:00
ifdef(`targeted_policy',`
files_dontaudit_read_root_files(roundup_t)
2006-02-02 21:08:12 +00:00
term_dontaudit_use_unallocated_ttys(roundup_t)
term_dontaudit_use_generic_ptys(roundup_t)
2006-01-11 20:03:21 +00:00
')
optional_policy(`
2006-01-11 20:03:21 +00:00
mysql_stream_connect(roundup_t)
2006-02-02 21:08:12 +00:00
mysql_search_db(roundup_t)
2006-01-11 20:03:21 +00:00
')
optional_policy(`
2006-01-11 20:03:21 +00:00
seutil_sigchld_newrole(roundup_t)
')
optional_policy(`
2006-01-11 20:03:21 +00:00
udev_read_db(roundup_t)
')