|
Chris PeBenito |
9570b2 |
policy_module(finger, 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 fingerd_t;
|
|
Chris PeBenito |
17de1b |
type fingerd_exec_t;
|
|
Chris PeBenito |
8242f5 |
init_daemon_domain(fingerd_t, fingerd_exec_t)
|
|
Chris PeBenito |
8242f5 |
inetd_tcp_service_domain(fingerd_t, fingerd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type fingerd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(fingerd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type fingerd_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(fingerd_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type fingerd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(fingerd_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 fingerd_t self:capability { setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit fingerd_t self:capability { sys_tty_config fsetid };
|
|
Chris PeBenito |
17de1b |
allow fingerd_t self:process signal_perms;
|
|
Chris PeBenito |
0b36a2 |
allow fingerd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow fingerd_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow fingerd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow fingerd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow fingerd_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(fingerd_t, fingerd_var_run_t, fingerd_var_run_t)
|
|
Chris PeBenito |
8242f5 |
files_pid_filetrans(fingerd_t, fingerd_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
allow fingerd_t fingerd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
8242f5 |
read_files_pattern(fingerd_t, fingerd_etc_t, fingerd_etc_t)
|
|
Chris PeBenito |
8242f5 |
read_lnk_files_pattern(fingerd_t, fingerd_etc_t, fingerd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow fingerd_t fingerd_log_t:file manage_file_perms;
|
|
Chris PeBenito |
8242f5 |
logging_log_filetrans(fingerd_t, fingerd_log_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(fingerd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(fingerd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(fingerd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(fingerd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(fingerd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(fingerd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(fingerd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(fingerd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(fingerd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(fingerd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_fingerd_port(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(fingerd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c3c753 |
term_getattr_all_ttys(fingerd_t)
|
|
Chris PeBenito |
c3c753 |
term_getattr_all_ptys(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_read_lastlog(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(fingerd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_home(fingerd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(fingerd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_read_utmp(fingerd_t)
|
|
Chris PeBenito |
17de1b |
init_dontaudit_write_utmp(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_getattr_spool(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(fingerd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# stop it accessing sub-directories, prevents checking a Maildir for new mail,
|
|
Chris PeBenito |
17de1b |
# have to change this when we create a type for Maildir
|
|
Chris PeBenito |
296273 |
userdom_read_user_home_content_files(fingerd_t)
|
|
Chris PeBenito |
e9c6cd |
userdom_dontaudit_use_unpriv_user_fds(fingerd_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
cron_system_entry(fingerd_t, fingerd_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
logrotate_exec(fingerd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(fingerd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(fingerd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(fingerd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
tcpd_wrapped_domain(fingerd_t, fingerd_exec_t)
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(fingerd_t)
|
|
Chris PeBenito |
17de1b |
')
|