2005-10-22 22:51:01 +00:00
|
|
|
|
|
|
|
policy_module(radius,1.0)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type radiusd_t;
|
|
|
|
type radiusd_exec_t;
|
|
|
|
init_daemon_domain(radiusd_t,radiusd_exec_t)
|
|
|
|
|
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
|
|
|
|
|
|
|
type radiusd_log_t;
|
|
|
|
logging_log_file(radiusd_log_t)
|
|
|
|
|
|
|
|
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;
|
|
|
|
allow radiusd_t self:process setsched;
|
|
|
|
allow radiusd_t self:fifo_file rw_file_perms;
|
|
|
|
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;
|
|
|
|
|
|
|
|
allow radiusd_t radiusd_etc_t:file r_file_perms;
|
|
|
|
allow radiusd_t radiusd_etc_t:dir r_dir_perms;
|
|
|
|
allow radiusd_t radiusd_etc_t:lnk_file { getattr read };
|
|
|
|
files_search_etc(radiusd_t)
|
|
|
|
|
|
|
|
allow radiusd_t radiusd_log_t:file create_file_perms;
|
2005-11-04 16:43:05 +00:00
|
|
|
allow radiusd_t radiusd_log_t:dir create_dir_perms;
|
2005-10-22 22:51:01 +00:00
|
|
|
logging_create_log(radiusd_t,radiusd_log_t,{ file dir })
|
|
|
|
|
|
|
|
allow radiusd_t radiusd_var_run_t:file create_file_perms;
|
|
|
|
allow radiusd_t radiusd_var_run_t:dir rw_dir_perms;
|
|
|
|
files_create_pid(radiusd_t,radiusd_var_run_t)
|
|
|
|
|
|
|
|
kernel_read_kernel_sysctl(radiusd_t)
|
|
|
|
kernel_read_system_state(radiusd_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(radiusd_t)
|
|
|
|
corenet_raw_sendrecv_all_if(radiusd_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(radiusd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(radiusd_t)
|
|
|
|
corenet_tcp_bind_all_nodes(radiusd_t)
|
|
|
|
corenet_udp_bind_all_nodes(radiusd_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(radiusd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(radiusd_t)
|
|
|
|
corenet_udp_bind_radacct_port(radiusd_t)
|
|
|
|
corenet_udp_bind_radius_port(radiusd_t)
|
|
|
|
# for RADIUS proxy port
|
|
|
|
corenet_udp_bind_generic_port(radiusd_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(radiusd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(radiusd_t)
|
|
|
|
fs_search_auto_mountpoints(radiusd_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(radiusd_t)
|
|
|
|
|
|
|
|
auth_read_shadow(radiusd_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(radiusd_t)
|
|
|
|
corecmd_exec_shell(radiusd_t)
|
2005-11-08 22:00:30 +00:00
|
|
|
corecmd_search_sbin(radiusd_t)
|
2005-10-22 22:51:01 +00:00
|
|
|
|
|
|
|
domain_use_wide_inherit_fd(radiusd_t)
|
|
|
|
|
|
|
|
files_read_usr_files(radiusd_t)
|
|
|
|
files_read_etc_files(radiusd_t)
|
|
|
|
files_read_etc_runtime_files(radiusd_t)
|
|
|
|
|
|
|
|
init_use_fd(radiusd_t)
|
|
|
|
init_use_script_pty(radiusd_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(radiusd_t)
|
|
|
|
libs_use_shared_libs(radiusd_t)
|
|
|
|
libs_exec_lib_files(radiusd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(radiusd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(radiusd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(radiusd_t)
|
|
|
|
|
|
|
|
userdom_dontaudit_use_unpriv_user_fd(radiusd_t)
|
|
|
|
userdom_dontaudit_search_sysadm_home_dir(radiusd_t)
|
|
|
|
userdom_dontaudit_getattr_sysadm_home_dir(radiusd_t)
|
|
|
|
|
|
|
|
ifdef(`targeted_policy', `
|
|
|
|
term_dontaudit_use_unallocated_tty(radiusd_t)
|
|
|
|
term_dontaudit_use_generic_pty(radiusd_t)
|
|
|
|
files_dontaudit_read_root_file(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`cron',`
|
2005-10-22 22:51:01 +00:00
|
|
|
cron_system_entry(radiusd_t,radiusd_exec_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`logrotate',`
|
2005-10-22 22:51:01 +00:00
|
|
|
logrotate_exec(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`nis',`
|
2005-10-22 22:51:01 +00:00
|
|
|
nis_use_ypbind(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`selinuxutil',`
|
2005-10-22 22:51:01 +00:00
|
|
|
seutil_sigchld_newrole(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`snmp',`
|
2005-10-22 22:51:01 +00:00
|
|
|
snmp_use(radiusd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`udev',`
|
2005-10-22 22:51:01 +00:00
|
|
|
udev_read_db(radiusd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
ifdef(`TODO',`
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`rhgb',`
|
2005-10-22 22:51:01 +00:00
|
|
|
rhgb_domain(radiusd_t)
|
|
|
|
')
|
|
|
|
') dnl end TODO
|