|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
f7925f |
policy_module(radius,1.6.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type radiusd_t;
|
|
Chris PeBenito |
17de1b |
type radiusd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(radiusd_t,radiusd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type radiusd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(radiusd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
465510 |
type radiusd_etc_rw_t;
|
|
Chris PeBenito |
465510 |
files_type(radiusd_etc_rw_t)
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
17de1b |
type radiusd_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(radiusd_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
type radiusd_var_lib_t;
|
|
Chris PeBenito |
226c06 |
files_type(radiusd_var_lib_t)
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
17de1b |
type radiusd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(radiusd_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 |
# fsetid is for gzip which needs it when run from scripts
|
|
Chris PeBenito |
17de1b |
# gzip also needs chown access to preserve GID for radwtmp files
|
|
Chris PeBenito |
17de1b |
allow radiusd_t self:capability { chown dac_override fsetid kill setgid setuid sys_resource sys_tty_config };
|
|
Chris PeBenito |
17de1b |
dontaudit radiusd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
a5e213 |
allow radiusd_t self:process { setsched signal };
|
|
Chris PeBenito |
c0868a |
allow radiusd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow radiusd_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow radiusd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow radiusd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
720014 |
allow radiusd_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
720014 |
allow radiusd_t radiusd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
read_files_pattern(radiusd_t,radiusd_etc_t,radiusd_etc_t)
|
|
Chris PeBenito |
c0868a |
read_lnk_files_pattern(radiusd_t,radiusd_etc_t,radiusd_etc_t)
|
|
Chris PeBenito |
17de1b |
files_search_etc(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(radiusd_t,radiusd_etc_rw_t,radiusd_etc_rw_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(radiusd_t,radiusd_etc_rw_t,radiusd_etc_rw_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(radiusd_t,radiusd_etc_rw_t,radiusd_etc_rw_t)
|
|
Chris PeBenito |
c0868a |
filetrans_pattern(radiusd_t,radiusd_etc_t,radiusd_etc_rw_t,{ dir file lnk_file })
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(radiusd_t,radiusd_log_t,radiusd_log_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(radiusd_t,radiusd_log_t,radiusd_log_t)
|
|
Chris PeBenito |
17de1b |
logging_log_filetrans(radiusd_t,radiusd_log_t,{ file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
manage_files_pattern(radiusd_t,radiusd_var_lib_t,radiusd_var_lib_t)
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(radiusd_t,radiusd_var_run_t,radiusd_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(radiusd_t,radiusd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(radiusd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(radiusd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_radacct_port(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_radius_port(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_radius_server_packets(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_radacct_server_packets(radiusd_t)
|
|
Chris PeBenito |
17de1b |
# for RADIUS proxy port
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_generic_port(radiusd_t)
|
|
Chris PeBenito |
226c06 |
corenet_dontaudit_udp_bind_all_ports(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_generic_server_packets(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_read_shadow(radiusd_t)
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(radiusd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(radiusd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(radiusd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(radiusd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
libs_exec_lib_files(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(radiusd_t)
|
|
Chris PeBenito |
6dd721 |
miscfiles_read_certs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(radiusd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_getattr_sysadm_home_dirs(radiusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cron_system_entry(radiusd_t,radiusd_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
logrotate_exec(radiusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(radiusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
99b5a5 |
samba_read_var_files(radiusd_t)
|
|
Chris PeBenito |
99b5a5 |
')
|
|
Chris PeBenito |
99b5a5 |
|
|
Chris PeBenito |
99b5a5 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(radiusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(radiusd_t)
|
|
Chris PeBenito |
17de1b |
')
|