2009-08-05 14:59:21 +00:00
|
|
|
policy_module(radius, 1.11.0)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type radiusd_t;
|
|
|
|
type radiusd_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(radiusd_t, radiusd_exec_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2005-10-24 18:40:24 +00:00
|
|
|
type radiusd_etc_t;
|
|
|
|
files_config_file(radiusd_etc_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2006-07-28 15:13:58 +00:00
|
|
|
type radiusd_etc_rw_t;
|
|
|
|
files_type(radiusd_etc_rw_t)
|
|
|
|
|
2008-10-08 15:50:03 +00:00
|
|
|
type radiusd_initrc_exec_t;
|
|
|
|
init_script_file(radiusd_initrc_exec_t)
|
|
|
|
|
2005-10-22 22:51:01 +00:00
|
|
|
type radiusd_log_t;
|
|
|
|
logging_log_file(radiusd_log_t)
|
|
|
|
|
2007-11-15 20:10:26 +00:00
|
|
|
type radiusd_var_lib_t;
|
|
|
|
files_type(radiusd_var_lib_t)
|
|
|
|
|
2005-10-22 22:51:01 +00:00
|
|
|
type radiusd_var_run_t;
|
|
|
|
files_pid_file(radiusd_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
# fsetid is for gzip which needs it when run from scripts
|
|
|
|
# gzip also needs chown access to preserve GID for radwtmp files
|
|
|
|
allow radiusd_t self:capability { chown dac_override fsetid kill setgid setuid sys_resource sys_tty_config };
|
|
|
|
dontaudit radiusd_t self:capability sys_tty_config;
|
2008-10-08 15:50:03 +00:00
|
|
|
allow radiusd_t self:process { getsched setsched sigkill signal };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow radiusd_t self:fifo_file rw_fifo_file_perms;
|
2005-10-22 22:51:01 +00:00
|
|
|
allow radiusd_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow radiusd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow radiusd_t self:udp_socket create_socket_perms;
|
|
|
|
|
2007-03-19 18:42:57 +00:00
|
|
|
allow radiusd_t radiusd_etc_t:dir list_dir_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
read_files_pattern(radiusd_t, radiusd_etc_t, radiusd_etc_t)
|
|
|
|
read_lnk_files_pattern(radiusd_t, radiusd_etc_t, radiusd_etc_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
files_search_etc(radiusd_t)
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(radiusd_t, radiusd_etc_rw_t, radiusd_etc_rw_t)
|
|
|
|
manage_files_pattern(radiusd_t, radiusd_etc_rw_t, radiusd_etc_rw_t)
|
|
|
|
manage_lnk_files_pattern(radiusd_t, radiusd_etc_rw_t, radiusd_etc_rw_t)
|
|
|
|
filetrans_pattern(radiusd_t, radiusd_etc_t, radiusd_etc_rw_t, { dir file lnk_file })
|
2006-07-28 15:13:58 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(radiusd_t, radiusd_log_t, radiusd_log_t)
|
|
|
|
manage_files_pattern(radiusd_t, radiusd_log_t, radiusd_log_t)
|
|
|
|
logging_log_filetrans(radiusd_t, radiusd_log_t,{ file dir })
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(radiusd_t, radiusd_var_lib_t, radiusd_var_lib_t)
|
2007-11-15 20:10:26 +00:00
|
|
|
|
2008-11-06 22:36:50 +00:00
|
|
|
manage_sock_files_pattern(radiusd_t, radiusd_var_run_t, radiusd_var_run_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(radiusd_t, radiusd_var_run_t, radiusd_var_run_t)
|
2008-11-06 22:36:50 +00:00
|
|
|
files_pid_filetrans(radiusd_t, radiusd_var_run_t, { file sock_file })
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
kernel_read_system_state(radiusd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(radiusd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(radiusd_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(radiusd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(radiusd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_udp_bind_generic_node(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
corenet_udp_bind_radacct_port(radiusd_t)
|
|
|
|
corenet_udp_bind_radius_port(radiusd_t)
|
2008-10-08 15:50:03 +00:00
|
|
|
corenet_tcp_connect_mysqld_port(radiusd_t)
|
|
|
|
corenet_tcp_connect_snmp_port(radiusd_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_radius_server_packets(radiusd_t)
|
|
|
|
corenet_sendrecv_radacct_server_packets(radiusd_t)
|
2008-10-08 15:50:03 +00:00
|
|
|
corenet_sendrecv_mysqld_client_packets(radiusd_t)
|
|
|
|
corenet_sendrecv_snmp_client_packets(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
# for RADIUS proxy port
|
|
|
|
corenet_udp_bind_generic_port(radiusd_t)
|
2007-11-15 20:10:26 +00:00
|
|
|
corenet_dontaudit_udp_bind_all_ports(radiusd_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_generic_server_packets(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(radiusd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(radiusd_t)
|
|
|
|
fs_search_auto_mountpoints(radiusd_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(radiusd_t)
|
|
|
|
corecmd_exec_shell(radiusd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
|
|
|
files_read_usr_files(radiusd_t)
|
|
|
|
files_read_etc_files(radiusd_t)
|
|
|
|
files_read_etc_runtime_files(radiusd_t)
|
|
|
|
|
2008-10-08 15:50:03 +00:00
|
|
|
auth_use_nsswitch(radiusd_t)
|
|
|
|
auth_read_shadow(radiusd_t)
|
|
|
|
auth_domtrans_chk_passwd(radiusd_t)
|
|
|
|
|
2005-10-22 22:51:01 +00:00
|
|
|
libs_exec_lib_files(radiusd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(radiusd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(radiusd_t)
|
2010-09-09 16:14:48 +00:00
|
|
|
miscfiles_read_generic_certs(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(radiusd_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_dirs(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-07-23 21:38:39 +00:00
|
|
|
cron_system_entry(radiusd_t, radiusd_exec_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-22 22:51:01 +00:00
|
|
|
logrotate_exec(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-10-08 15:50:03 +00:00
|
|
|
mysql_read_config(radiusd_t)
|
|
|
|
mysql_stream_connect(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
')
|
|
|
|
|
2007-06-20 15:03:55 +00:00
|
|
|
optional_policy(`
|
|
|
|
samba_read_var_files(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-22 22:51:01 +00:00
|
|
|
seutil_sigchld_newrole(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-22 22:51:01 +00:00
|
|
|
udev_read_db(radiusd_t)
|
|
|
|
')
|