2009-08-05 14:59:21 +00:00
|
|
|
policy_module(finger, 1.9.0)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2006-05-17 20:55:12 +00:00
|
|
|
|
2005-10-07 21:45:04 +00:00
|
|
|
type fingerd_t;
|
|
|
|
type fingerd_exec_t;
|
2007-09-17 14:33:40 +00:00
|
|
|
init_daemon_domain(fingerd_t, fingerd_exec_t)
|
|
|
|
inetd_tcp_service_domain(fingerd_t, fingerd_exec_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
2005-10-24 18:40:24 +00:00
|
|
|
type fingerd_etc_t;
|
|
|
|
files_config_file(fingerd_etc_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
|
|
|
type fingerd_log_t;
|
|
|
|
logging_log_file(fingerd_log_t)
|
|
|
|
|
|
|
|
type fingerd_var_run_t;
|
|
|
|
files_pid_file(fingerd_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
2006-05-17 20:55:12 +00:00
|
|
|
|
2005-10-07 21:45:04 +00:00
|
|
|
allow fingerd_t self:capability { setgid setuid };
|
|
|
|
dontaudit fingerd_t self:capability { sys_tty_config fsetid };
|
|
|
|
allow fingerd_t self:process signal_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow fingerd_t self:fifo_file rw_fifo_file_perms;
|
2005-10-07 21:45:04 +00:00
|
|
|
allow fingerd_t self:tcp_socket connected_stream_socket_perms;
|
|
|
|
allow fingerd_t self:udp_socket create_socket_perms;
|
|
|
|
allow fingerd_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow fingerd_t self:unix_stream_socket create_socket_perms;
|
|
|
|
|
2007-09-17 14:33:40 +00:00
|
|
|
manage_files_pattern(fingerd_t, fingerd_var_run_t, fingerd_var_run_t)
|
|
|
|
files_pid_filetrans(fingerd_t, fingerd_var_run_t, file)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
2007-09-17 14:33:40 +00:00
|
|
|
allow fingerd_t fingerd_etc_t:dir list_dir_perms;
|
|
|
|
read_files_pattern(fingerd_t, fingerd_etc_t, fingerd_etc_t)
|
|
|
|
read_lnk_files_pattern(fingerd_t, fingerd_etc_t, fingerd_etc_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow fingerd_t fingerd_log_t:file manage_file_perms;
|
2007-09-17 14:33:40 +00:00
|
|
|
logging_log_filetrans(fingerd_t, fingerd_log_t, file)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
kernel_read_system_state(fingerd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(fingerd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(fingerd_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(fingerd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(fingerd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(fingerd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(fingerd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(fingerd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
corenet_tcp_bind_fingerd_port(fingerd_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(fingerd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(fingerd_t)
|
|
|
|
fs_search_auto_mountpoints(fingerd_t)
|
|
|
|
|
2010-02-11 19:20:10 +00:00
|
|
|
term_getattr_all_ttys(fingerd_t)
|
|
|
|
term_getattr_all_ptys(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
|
|
|
auth_read_lastlog(fingerd_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(fingerd_t)
|
|
|
|
corecmd_exec_shell(fingerd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
2005-10-21 21:35:25 +00:00
|
|
|
files_search_home(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
files_read_etc_files(fingerd_t)
|
|
|
|
files_read_etc_runtime_files(fingerd_t)
|
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_read_utmp(fingerd_t)
|
|
|
|
init_dontaudit_write_utmp(fingerd_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(fingerd_t)
|
|
|
|
|
|
|
|
mta_getattr_spool(fingerd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(fingerd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(fingerd_t)
|
|
|
|
|
2005-11-29 21:27:15 +00:00
|
|
|
# stop it accessing sub-directories, prevents checking a Maildir for new mail,
|
|
|
|
# have to change this when we create a type for Maildir
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_read_user_home_content_files(fingerd_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(fingerd_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2007-09-17 14:33:40 +00:00
|
|
|
cron_system_entry(fingerd_t, fingerd_exec_t)
|
2005-10-07 21:45:04 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-07 21:45:04 +00:00
|
|
|
logrotate_exec(fingerd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-07 21:45:04 +00:00
|
|
|
nis_use_ypbind(fingerd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(fingerd_t)
|
2005-10-25 18:28:41 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-07 21:45:04 +00:00
|
|
|
seutil_sigchld_newrole(fingerd_t)
|
|
|
|
')
|
|
|
|
|
2007-09-17 14:33:40 +00:00
|
|
|
optional_policy(`
|
|
|
|
tcpd_wrapped_domain(fingerd_t, fingerd_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-07 21:45:04 +00:00
|
|
|
udev_read_db(fingerd_t)
|
|
|
|
')
|