Chris PeBenito 29af4c
policy_module(ntop, 1.9.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ntop_t;
Chris PeBenito 17de1b
type ntop_exec_t;
Chris PeBenito 0bfccd
init_daemon_domain(ntop_t, ntop_exec_t)
Chris PeBenito 0bfccd
application_domain(ntop_t, ntop_exec_t)
Chris PeBenito 17de1b
Jeremy Solt 4f7b41
type ntop_initrc_exec_t;
Jeremy Solt 4f7b41
init_script_file(ntop_initrc_exec_t)
Jeremy Solt 4f7b41
Chris PeBenito 17de1b
type ntop_etc_t;
Chris PeBenito 17de1b
files_config_file(ntop_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ntop_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(ntop_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ntop_var_lib_t;
Chris PeBenito 17de1b
files_type(ntop_var_lib_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ntop_var_run_t;
Chris PeBenito 17de1b
files_pid_file(ntop_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local Policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow ntop_t self:capability { net_raw setgid setuid sys_admin net_admin };
Chris PeBenito 17de1b
dontaudit ntop_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow ntop_t self:process signal_perms;
Chris PeBenito 0b36a2
allow ntop_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 17de1b
allow ntop_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow ntop_t self:udp_socket create_socket_perms;
Jeremy Solt 4f7b41
allow ntop_t self:unix_dgram_socket create_socket_perms;
Jeremy Solt 4f7b41
allow ntop_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow ntop_t self:packet_socket create_socket_perms;
Jeremy Solt 4f7b41
allow ntop_t self:socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow ntop_t ntop_etc_t:dir list_dir_perms;
Chris PeBenito 0bfccd
read_files_pattern(ntop_t, ntop_etc_t, ntop_etc_t)
Chris PeBenito 0bfccd
read_lnk_files_pattern(ntop_t, ntop_etc_t, ntop_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_dirs_pattern(ntop_t, ntop_tmp_t, ntop_tmp_t)
Chris PeBenito 0bfccd
manage_files_pattern(ntop_t, ntop_tmp_t, ntop_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(ntop_t, ntop_tmp_t, { file dir })
Chris PeBenito 17de1b
Jeremy Solt e6e2a7
manage_dirs_pattern(ntop_t, ntop_var_lib_t, ntop_var_lib_t)
Jeremy Solt e6e2a7
manage_files_pattern(ntop_t, ntop_var_lib_t, ntop_var_lib_t)
Jeremy Solt 4f7b41
files_var_lib_filetrans(ntop_t, ntop_var_lib_t, { file dir } )
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(ntop_t, ntop_var_run_t, ntop_var_run_t)
Chris PeBenito 0bfccd
files_pid_filetrans(ntop_t, ntop_var_run_t, file)
Chris PeBenito 17de1b
Jeremy Solt 4f7b41
kernel_request_load_module(ntop_t)
Jeremy Solt 4f7b41
kernel_read_system_state(ntop_t)
Chris PeBenito 17de1b
kernel_read_network_state(ntop_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(ntop_t)
Chris PeBenito 17de1b
kernel_list_proc(ntop_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(ntop_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(ntop_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(ntop_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(ntop_t)
Chris PeBenito 17de1b
corenet_raw_sendrecv_generic_if(ntop_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(ntop_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(ntop_t)
Chris PeBenito c12621
corenet_raw_sendrecv_generic_node(ntop_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(ntop_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(ntop_t)
Jeremy Solt 4f7b41
corenet_tcp_bind_ntop_port(ntop_t)
Jeremy Solt 4f7b41
corenet_tcp_connect_ntop_port(ntop_t)
Jeremy Solt 4f7b41
corenet_tcp_connect_http_port(ntop_t)
Chris PeBenito 45696a
corenet_sendrecv_http_client_packets(ntop_t)
Chris PeBenito 45696a
corenet_sendrecv_ntop_client_packets(ntop_t)
Chris PeBenito 45696a
corenet_sendrecv_ntop_server_packets(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(ntop_t)
Jeremy Solt 4f7b41
dev_rw_generic_usb_dev(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(ntop_t)
Jeremy Solt 4f7b41
files_read_usr_files(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(ntop_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(ntop_t)
Chris PeBenito 17de1b
Jeremy Solt 4f7b41
auth_use_nsswitch(ntop_t)
Jeremy Solt 4f7b41
Chris PeBenito 17de1b
logging_send_syslog_msg(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(ntop_t)
Jeremy Solt 4f7b41
miscfiles_read_fonts(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(ntop_t)
Chris PeBenito 296273
userdom_dontaudit_search_user_home_dirs(ntop_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Jeremy Solt 4f7b41
	apache_read_sys_content(ntop_t)
Jeremy Solt 4f7b41
')
Jeremy Solt 4f7b41
Jeremy Solt 4f7b41
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(ntop_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(ntop_t)
Chris PeBenito 17de1b
')