|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
bd7037 |
policy_module(finger,1.0.1)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
########################################
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
# Declarations
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
type fingerd_t;
|
|
Chris PeBenito |
d4dca5 |
type fingerd_exec_t;
|
|
Chris PeBenito |
0500e0 |
init_daemon_domain(fingerd_t,fingerd_exec_t)
|
|
Chris PeBenito |
d4dca5 |
inetd_tcp_service_domain(fingerd_t,fingerd_exec_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
9bbc75 |
type fingerd_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(fingerd_etc_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
type fingerd_log_t;
|
|
Chris PeBenito |
d4dca5 |
logging_log_file(fingerd_log_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
type fingerd_var_run_t;
|
|
Chris PeBenito |
d4dca5 |
files_pid_file(fingerd_var_run_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
########################################
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
# Local policy
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:capability { setgid setuid };
|
|
Chris PeBenito |
d4dca5 |
dontaudit fingerd_t self:capability { sys_tty_config fsetid };
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:process signal_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:fifo_file { read write getattr };
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
d4dca5 |
files_create_pid(fingerd_t,fingerd_var_run_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_etc_t:lnk_file { getattr read };
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t fingerd_log_t:file create_file_perms;
|
|
Chris PeBenito |
d4dca5 |
logging_create_log(fingerd_t,fingerd_log_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
kernel_read_kernel_sysctl(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
kernel_read_system_state(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
kernel_tcp_recvfrom(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
corenet_tcp_sendrecv_all_if(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_udp_sendrecv_all_if(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_raw_sendrecv_all_if(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_tcp_sendrecv_all_nodes(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_udp_sendrecv_all_nodes(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_raw_sendrecv_all_nodes(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_tcp_sendrecv_all_ports(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_udp_sendrecv_all_ports(fingerd_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_tcp_bind_all_nodes(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_udp_bind_all_nodes(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corenet_tcp_bind_fingerd_port(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
dev_read_sysfs(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
fs_getattr_all_fs(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
fs_search_auto_mountpoints(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
term_search_ptys(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
term_dontaudit_use_console(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
term_getattr_all_user_ttys(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
term_getattr_all_user_ptys(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
auth_read_lastlog(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
corecmd_exec_bin(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corecmd_exec_sbin(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
corecmd_exec_shell(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
domain_use_wide_inherit_fd(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
e6a2ea |
files_search_home(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
files_read_etc_files(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
files_read_etc_runtime_files(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
init_read_script_pid(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
init_dontaudit_write_script_pid(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
init_use_fd(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
init_use_script_pty(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
libs_use_ld_so(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
libs_use_shared_libs(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
logging_send_syslog_msg(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
mta_getattr_spool(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
sysnet_read_config(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
miscfiles_read_localization(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
userdom_read_unpriv_user_home_files(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
userdom_dontaudit_use_unpriv_user_fd(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
userdom_dontaudit_search_sysadm_home_dir(fingerd_t)
|
|
Chris PeBenito |
9fd4b8 |
# stop it accessing sub-directories, prevents checking a Maildir for new mail,
|
|
Chris PeBenito |
9fd4b8 |
# have to change this when we create a type for Maildir
|
|
Chris PeBenito |
9fd4b8 |
userdom_dontaudit_search_user_home_dirs(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
d4dca5 |
term_dontaudit_use_unallocated_tty(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
term_dontaudit_use_generic_pty(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
files_dontaudit_read_root_file(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
132880 |
optional_policy(`cron',`
|
|
Chris PeBenito |
d4dca5 |
cron_system_entry(fingerd_t,fingerd_exec_t)
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
132880 |
optional_policy(`logrotate',`
|
|
Chris PeBenito |
d4dca5 |
logrotate_exec(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
d4dca5 |
nis_use_ypbind(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
e11d2e |
nscd_use_socket(fingerd_t)
|
|
Chris PeBenito |
e11d2e |
')
|
|
Chris PeBenito |
e11d2e |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
d4dca5 |
seutil_sigchld_newrole(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
d4dca5 |
udev_read_db(fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
')
|